Advertisement
Guest User

Untitled

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