Guest User

Untitled

a guest
Jul 27th, 2016
62
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.mink.se.clearchat;
  2.  
  3. import org.bukkit.Bukkit;
  4.  
  5. import org.bukkit.ChatColor;
  6. import org.bukkit.command.Command;
  7. import org.bukkit.command.CommandExecutor;
  8. import org.bukkit.command.CommandSender;
  9.  
  10. public class clearchatCommand implements CommandExecutor {
  11.  
  12. public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
  13. if (cmd.getName().equalsIgnoreCase("cc") || cmd.getName().equalsIgnoreCase("clearchat")) {
  14. if (sender.hasPermission("se.chat.clear") || sender.hasPermission("se.*")){
  15. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  16. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  17. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  18. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  19. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  20. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  21. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  22. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  23. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  24. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  25. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  26. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  27. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  28. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  29. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  30. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  31. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  32. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  33. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  34. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  35. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  36. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  37. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  38. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  39. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  40. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  41. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  42. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  43. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  44. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  45. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  46. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  47. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  48. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  49. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  50. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  51. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  52. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  53. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  54. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  55. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  56. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  57. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  58. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  59. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  60. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  61. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  62. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  63. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  64. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  65. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  66. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  67. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  68. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  69. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  70. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  71. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  72. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  73. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  74. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  75. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  76. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  77. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  78. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  79. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  80. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  81. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  82. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  83. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  84. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  85. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  86. Bukkit.getServer().broadcastMessage(ChatColor.RED + " ");
  87. Bukkit.getServer().broadcastMessage(ChatColor.translateAlternateColorCodes('&', "&e&m----------------------------------"));
  88.  
  89. Bukkit.getServer().broadcastMessage(ChatColor.translateAlternateColorCodes('&', "&6 The chat has been cleared"));
  90.  
  91. Bukkit.getServer().broadcastMessage(ChatColor.translateAlternateColorCodes('&', "&e&m----------------------------------"));
  92. return true;
  93.  
  94. } else {
  95. sender.sendMessage(ChatColor.RED + getConfig().getString("Permissions Denied Message"));
  96. return true;
  97. }
  98. }
  99. return false;
  100. }
  101.  
  102. }
RAW Paste Data