Re-added broadcast event for kill tile abuse.
Added kick for SendSection Added kick for NPC abuse
This commit is contained in:
parent
83c5ece94c
commit
b2f4ee698b
1 changed files with 3 additions and 0 deletions
|
|
@ -173,11 +173,13 @@ namespace TShockAPI
|
|||
if (e.MsgID == 0x0A) //SendSection
|
||||
{
|
||||
Tools.Broadcast(string.Format("{0}({1}) attempted sending a section", Main.player[e.Msg.whoAmI].name, e.Msg.whoAmI));
|
||||
Tools.Kick(e.Msg.whoAmI, "SendSection abuse.");
|
||||
e.Handled = true;
|
||||
}
|
||||
if (e.MsgID == 0x17) //Npc Data
|
||||
{
|
||||
Tools.Broadcast(string.Format("{0}({1}) attempted spawning an NPC", Main.player[e.Msg.whoAmI].name, e.Msg.whoAmI));
|
||||
Tools.Kick(e.Msg.whoAmI, "Spawn NPC abuse");
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
|
|
@ -265,6 +267,7 @@ namespace TShockAPI
|
|||
{
|
||||
FileTools.WriteGrief((int)i);
|
||||
Tools.Kick((int)i, "Kill tile abuse detected.");
|
||||
Tools.Broadcast(Main.player[i].name + " was " + (ConfigurationManager.banTnt ? "banned" : "kicked") + " for kill tile abuse.");
|
||||
}
|
||||
tileThreshold[i] = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue