Mav why did you remove ConfigurationManager.startedInvasion without removing its use.
This commit is contained in:
parent
3bbbafc94d
commit
cfc05e1663
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue