Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. @Override
  2. public boolean onCommand(CommandSender sender, Command cmd, String label, String[] a)
  3. {
  4.  
  5. String prefix = "§7[§cAnti-Insulte§7] ";
  6.  
  7. if(label.equalsIgnoreCase("insulte"))
  8. {
  9. if(sender instanceof Player)
  10. {
  11. Player p = (Player) sender;
  12. if(a[1].equalsIgnoreCase("add"))
  13. {
  14. if(a.length > 0)
  15. {
  16. p.sendMessage(prefix +"§7L'insulte a été ajoutée à la §8BLACKLIST §7!");
  17. getConfig().getConfigurationSection("").set("", a[1]);
  18. saveConfig();
  19.  
  20. }else{
  21. if(a.length == 0)
  22. {
  23. p.sendMessage(prefix + "Usage: /insulte add <insulte>");
  24. }
  25. }
  26. }
  27. }
  28. }
  29. return true;
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement