mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Remove debug messages I forgot about and properly add kick-message values. Fixes bug #67
This commit is contained in:
1 parent
23ced50eed
commit
ba40bdc369
2 files changed
+7
-3
No files matched your search
@@ -1230,9 +1230,12 @@ public class Backend
|
||||
}
|
||||
|
||||
String event = kick <= magic.CHAT_BAN_LEVEL ? micromanage.getConfiguration().chatActionKick() : micromanage.getConfiguration().chatActionBan();
|
||||
// Set string variables
|
||||
event = event.replaceAll("&player", name).replaceAll("&world", player.getWorld().getName());
|
||||
|
||||
if (event.startsWith("COMMAND["))
|
||||
{
|
||||
String command = event.replaceAll("COMMAND\\[", "").replaceAll("]", "").replaceAll("&player", name).replaceAll("&world", player.getWorld().getName());
|
||||
String command = event.replaceAll("COMMAND\\[", "").replaceAll("]", "");
|
||||
Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), command);
|
||||
}
|
||||
else if (event.equalsIgnoreCase("KICK"))
|
||||
@@ -1240,6 +1243,7 @@ public class Backend
|
||||
String msg = kick <= magic.CHAT_BAN_LEVEL ? ChatColor.RED + lang.getChatKickReason() + " (" + kick + "/" + magic.CHAT_BAN_LEVEL + ")" : ChatColor.RED + lang.getChatBanReason();
|
||||
player.kickPlayer(msg);
|
||||
msg = kick <= magic.CHAT_BAN_LEVEL ? ChatColor.RED + lang.getChatKickBroadcast() + " (" + kick + "/" + magic.CHAT_BAN_LEVEL + ")" : ChatColor.RED + lang.getChatBanBroadcast();
|
||||
msg = msg.replaceAll("&player", name);
|
||||
if (!msg.equals(""))
|
||||
{
|
||||
Bukkit.broadcastMessage(msg);
|
||||
@@ -1249,7 +1253,8 @@ public class Backend
|
||||
{
|
||||
player.setBanned(true);
|
||||
player.kickPlayer(ChatColor.RED + lang.getChatBanReason());
|
||||
String msg = ChatColor.RED + lang.getChatBanBroadcast().replaceAll("&player", name);
|
||||
String msg = ChatColor.RED + lang.getChatBanBroadcast();
|
||||
msg = msg.replaceAll("&player", name);
|
||||
if (!msg.equals(""))
|
||||
{
|
||||
Bukkit.broadcastMessage(msg);
|
||||
|
||||
@@ -158,7 +158,6 @@ public class Calibrator implements Listener
|
||||
private double getMaxDouble(double length)
|
||||
{
|
||||
int count = getDoubleCount();
|
||||
System.out.println(count);
|
||||
if(count < 10)
|
||||
{
|
||||
doubles[count] = length;
|
||||
|
||||
Reference in new issue
Block a user