Skip to content

Commit

Permalink
Color alert before sending to AutoKillEvent
Browse files Browse the repository at this point in the history
Signed-off-by: applenick <[email protected]>
  • Loading branch information
applenick committed Apr 3, 2021
1 parent de38d00 commit a146e04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/climaxmc/autokiller/AutoKiller.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ public void logCheat(UUID uuid, String cheat, int vl) {
.replace("%ping%", Utils.getPing(player) + "")
.replace("%cheat%", cheat)
.replace("%vl%", vl + "");
alert = ChatColor.translateAlternateColorCodes('&', alert);

for (Player players : Bukkit.getOnlinePlayers()) {
if (players.isOp() || players.hasPermission("autokiller.staff")) {
players.sendMessage(ChatColor.translateAlternateColorCodes('&', alert));
players.sendMessage(alert);
}
}

Expand Down

0 comments on commit a146e04

Please sign in to comment.