mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 22:15:28 +00:00
String formatting restoration for XRay alerts.
This commit is contained in:
1 parent
ae2b90c583
commit
80bdafb14c
1 file changed
+5
-12
@@ -100,18 +100,11 @@ public class Anticheat extends JavaPlugin
|
|||||||
String name = player.getName();
|
String name = player.getName();
|
||||||
if (!xtracker.hasAlerted(name) && xtracker.sufficientData(name) && xtracker.hasAbnormal(name))
|
if (!xtracker.hasAlerted(name) && xtracker.sufficientData(name) && xtracker.hasAbnormal(name))
|
||||||
{
|
{
|
||||||
String[] alert = new String[2];
|
String [] alert = new String[2];
|
||||||
alert[0] = ChatColor.YELLOW
|
alert[0] = ChatColor.YELLOW+"[ALERT] "+ChatColor.WHITE+name+ChatColor.YELLOW+" might be using xray.";
|
||||||
+ "[ALERT] " + ChatColor.WHITE
|
alert[1] = ChatColor.YELLOW+"[ALERT] Please check their xray stats using "+ChatColor.WHITE+"/anticheat xray "+name+ChatColor.YELLOW+".";
|
||||||
+ name + ChatColor.YELLOW
|
Utilities.alert(alert);
|
||||||
+ " might be using xray.";
|
xtracker.logAlert(name);
|
||||||
alert[1] = ChatColor.YELLOW
|
|
||||||
+ "[ALERT] Please check their xray stats using "
|
|
||||||
+ ChatColor.WHITE
|
|
||||||
+ "/anticheat xray " + name
|
|
||||||
+ ChatColor.YELLOW + ".";
|
|
||||||
Utilities.alert(alert);
|
|
||||||
xtracker.logAlert(name);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user