Projectile check used the wrong config.
This commit is contained in:
parent
16e5cfe342
commit
efe8b3ce4f
1 changed files with 2 additions and 2 deletions
|
|
@ -265,10 +265,10 @@ namespace TShockAPI
|
|||
{
|
||||
if (!players[e.Msg.whoAmI].IsAdmin())
|
||||
{
|
||||
if (ConfigurationManager.kickTnt || ConfigurationManager.banTnt)
|
||||
if (ConfigurationManager.kickBoom || ConfigurationManager.banBoom)
|
||||
{
|
||||
int i = e.Msg.whoAmI;
|
||||
if (ConfigurationManager.banTnt)
|
||||
if (ConfigurationManager.banBoom)
|
||||
FileTools.WriteGrief((int)i);
|
||||
Tools.Kick((int)i, "Explosives was thrown.");
|
||||
Tools.Broadcast(Main.player[i].name + " was " + (ConfigurationManager.banBoom ? "banned" : "kicked") + " for throwing an explosive device.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue