Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void deliverPunishment(Player p) {
- // mPlayer.getPlayer(p).setAnticheatKicked(true);
- //
- // Bukkit.broadcastMessage("handliing punishment.");
- if (Shadow.get().debugEnabled()) {
- Utils.notifyPunishment(p, getHackType(), "Blocked by Debugging");
- return;
- }
- if (mPlayer.getPlayer(p).banned) return;
- mPlayer.getPlayer(p).banned = true;
- switch (getHackType().getPunishment()) {
- case KICK:
- Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "kick " + p.getName() + " &cModification Detected." + " &7&o[" + getBanID() + "]");
- Utils.notifyPunishment(p, getHackType(), this, "kicked");
- break;
- case TEMPBAN:
- //
- // p.kickPlayer("Shadow tempbanned you for " + getHackType().getHackName());
- Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "tempban " + p.getName() + " 7d Unfair Advantage." + (getBanID().equalsIgnoreCase("none") ? "" : " &7&o[" + getBanID() + "]"));
- Utils.notifyPunishment(p, getHackType(), this, "temporarily banned");
- break;
- case PERMBAN:
- //
- // p.kickPlayer("Shadow banned you for " + getHackType().getHackName());
- Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "ban " + p.getName() + " Unfair Advantage." + (getBanID().equalsIgnoreCase("none") ? "" : " &7&o[" + getBanID() + "]"));
- Utils.notifyPunishment(p, getHackType(), this, "banned");
- break;
- default:
- p.kickPlayer(ChatColor.RED + "Shadow kicked you for some illegal modification");
- Utils.notifyPunishment(p, getHackType(), this, "kicked");
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement