Last active
December 26, 2015 11:29
-
-
Save codebucketdev/7144068 to your computer and use it in GitHub Desktop.
With this snippet, you can send to all Operators a Information about a task...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void alertOperators(org.bukkit.command.CommandSender sender, String alert) | |
{ | |
for(Player player : Bukkit.getOnlinePlayers()) | |
{ | |
if(player.isOp()) | |
{ | |
if(!sender.getName().equals(player.getName())) | |
{ | |
player.sendMessage("§7§o["+sender.getName()+": "+alert+"]"); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment