Advertisement
Guest User

Untitled

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