From 115089610a8f9df1d394deec7aad614b17054f38 Mon Sep 17 00:00:00 2001 From: ricky Date: Tue, 7 Jun 2011 07:28:28 +1000 Subject: [PATCH] Fixed incorrect broadcast message when player is kicked for cheating. --- TShockAPI/TShock.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index aaa8e3b5..82a2aace 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -292,7 +292,7 @@ namespace TShockAPI if (ConfigurationManager.banCheater) Ban(ply, "Abnormal life increase"); Tools.Kick(ply, "Abnormal life increase"); - Tools.Broadcast(playerName + " was " + (ConfigurationManager.kickCheater ? "banned" : "kicked") + + Tools.Broadcast(playerName + " was " + (ConfigurationManager.banCheater ? "banned" : "kicked") + " because they gained an abnormal amount of health."); e.Handled = true; } @@ -325,7 +325,7 @@ namespace TShockAPI if (ConfigurationManager.banCheater) Ban(ply, "Abnormal mana increase"); Tools.Kick(ply, "Abnormal mana increase"); - Tools.Broadcast(playerName + " was " + (ConfigurationManager.kickCheater ? "banned" : "kicked") + + Tools.Broadcast(playerName + " was " + (ConfigurationManager.banCheater ? "banned" : "kicked") + " because they gained an abnormal amount of mana."); e.Handled = true; } @@ -447,7 +447,7 @@ namespace TShockAPI if (ConfigurationManager.banCheater) Ban(who, "Hacked health."); Tools.Kick(who, "Hacked health."); - Tools.Broadcast(playerName + " was " + (ConfigurationManager.kickCheater ? "banned" : "kicked") + " for hacked health."); + Tools.Broadcast(playerName + " was " + (ConfigurationManager.banCheater ? "banned" : "kicked") + " for hacked health."); } } if (ConfigurationManager.permaPvp)