Data_Base

Untitled

Oct 8th, 2017
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. public static void notify(Player player, HackType hackType, int notifications, String modifiers) {
  2.  
  3. // Bukkit.broadcastMessage("notifying...");
  4. if (mPlayer.getPlayer(player).banned) return;
  5.  
  6. String mf = (modifiers.isEmpty() ? "" : "&8(&c" + modifiers + "&8)");
  7.  
  8. for (Player online : Bukkit.getOnlinePlayers()) {
  9.  
  10. if (!online.isOp()) continue;
  11.  
  12. // online.sendMessage(player.getName() + " failed " + hackType.getHackName());
  13.  
  14. online.sendMessage(ChatColor.translateAlternateColorCodes('&',
  15. "&8[&cShadow&8] &c" + player.getName() + " &7failed &c" + hackType.getHackName() + " &8(&c" + notifications + "&8)" + mf));
  16.  
  17. }
  18.  
  19. System.out.println("[Shadow] " + player.getName() + " &7failed &c" + hackType.getHackName() + " &8(&c" + notifications + "&8)" + mf);
  20.  
  21. }
Add Comment
Please, Sign In to add comment