Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
- String commandName = command.getName().toLowerCase();
- if (commandName == "test"){
- Player[] players = getServer().getOnlinePlayers();
- int p;
- for(p=0;p < 100;p++){
- players[p].sendMessage("This is a test of the onCommand interface!");
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment