nicatronTg

Shank

Jan 31st, 2011
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1.     public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
  2.         String commandName = command.getName().toLowerCase();
  3.         if (commandName == "test"){
  4.             Player[] players = getServer().getOnlinePlayers();
  5.             int p;
  6.             for(p=0;p < 100;p++){
  7.                 players[p].sendMessage("This is a test of the onCommand interface!");
  8.             }
  9.         }
  10.         return true;
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment