All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.net.fabiozumbi12.UltimateChat.Bukkit.hooks.UCDynmapHook Maven / Gradle / Ivy

The newest version!
package br.net.fabiozumbi12.UltimateChat.Bukkit.hooks;

import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import org.dynmap.DynmapAPI;

import static org.bukkit.Bukkit.getServer;

public class UCDynmapHook {

    public static void sendToWeb(CommandSender sender, String message){
        Plugin p = getServer().getPluginManager().getPlugin("dynmap");
        if (p != null && p.isEnabled() && sender instanceof Player){
            ((DynmapAPI) p).postPlayerMessageToWeb((Player)sender, message);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy