Answers for "spigot send message to console"

3

how to send commands to console spigot plugin

getServer().dispatchCommand(getServer().getConsoleSender(), "command");
Posted by: Guest on February-05-2021
0

Spigot coding how to send a message to player after commadn

//After Command
public boolean onCommand(CommandSender sender, Command cmd, String[] args, String tag) {
	if(tag.equals("test")) {
    	Player player = (Player)sender; //getting the player reference
        player.sendMessage("Hello World!"); 
    	return true;
    }
    return false;
}
Posted by: Guest on October-06-2020

Code answers related to "spigot send message to console"

Browse Popular Code Answers by Language