WandersonL

Comando

Aug 18th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. // Comandos:
  2. @Override
  3. public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
  4.  
  5. Player p = (Player)sender;
  6. if (command.getName().equalsIgnoreCase("meu-comando")) {
  7. // Mensagem que o comando ira enviar.
  8. p.sendMessage("§aVoce digitou o comando §7teste§a.");
  9. }
  10.  
  11. return false;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment