From cfc05e1663d203e038aa92a307db6ae1200f23fc Mon Sep 17 00:00:00 2001 From: high Date: Mon, 6 Jun 2011 20:24:21 -0400 Subject: [PATCH] Mav why did you remove ConfigurationManager.startedInvasion without removing its use. --- TShockAPI/TShock.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index f85aafd3..58b64efc 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -501,8 +501,7 @@ namespace TShockAPI Main.player[who].hostile = true; NetMessage.SendData(30, -1, -1, "", who); } - if (players[who].group.HasPermission("causeevents") && ConfigurationManager.infiniteInvasion && - !ConfigurationManager.startedInvasion) + if (players[who].group.HasPermission("causeevents") && ConfigurationManager.infiniteInvasion) { StartInvasion(); } @@ -845,7 +844,7 @@ namespace TShockAPI { if (!players[plr].group.HasPermission("immunetoban")) { - Tools.Kick(plr,"Banned: " + reason); + Tools.Kick(plr, "Banned: " + reason); Bans.AddBan(Tools.GetPlayerIP(plr), Main.player[plr].name, reason); } }