Advertisement
Data_Base

Untitled

Oct 8th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. public void deliverPunishment(Player p) {
  2.  
  3. // mPlayer.getPlayer(p).setAnticheatKicked(true);
  4. //
  5.  
  6. // Bukkit.broadcastMessage("handliing punishment.");
  7.  
  8. if (Shadow.get().debugEnabled()) {
  9.  
  10. Utils.notifyPunishment(p, getHackType(), "Blocked by Debugging");
  11.  
  12. return;
  13. }
  14.  
  15. if (mPlayer.getPlayer(p).banned) return;
  16.  
  17. mPlayer.getPlayer(p).banned = true;
  18.  
  19. switch (getHackType().getPunishment()) {
  20.  
  21. case KICK:
  22.  
  23. Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "kick " + p.getName() + " &cModification Detected." + " &7&o[" + getBanID() + "]");
  24.  
  25. Utils.notifyPunishment(p, getHackType(), this, "kicked");
  26.  
  27. break;
  28. case TEMPBAN:
  29. //
  30. // p.kickPlayer("Shadow tempbanned you for " + getHackType().getHackName());
  31.  
  32. Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "tempban " + p.getName() + " 7d Unfair Advantage." + (getBanID().equalsIgnoreCase("none") ? "" : " &7&o[" + getBanID() + "]"));
  33.  
  34. Utils.notifyPunishment(p, getHackType(), this, "temporarily banned");
  35.  
  36. break;
  37.  
  38. case PERMBAN:
  39. //
  40. // p.kickPlayer("Shadow banned you for " + getHackType().getHackName());
  41.  
  42. Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "ban " + p.getName() + " Unfair Advantage." + (getBanID().equalsIgnoreCase("none") ? "" : " &7&o[" + getBanID() + "]"));
  43.  
  44. Utils.notifyPunishment(p, getHackType(), this, "banned");
  45.  
  46. break;
  47.  
  48. default:
  49.  
  50. p.kickPlayer(ChatColor.RED + "Shadow kicked you for some illegal modification");
  51.  
  52. Utils.notifyPunishment(p, getHackType(), this, "kicked");
  53.  
  54. break;
  55. }
  56.  
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement