Allow users to ban custom items
This commit is contained in:
parent
9fed5338a4
commit
a6132a31a2
2 changed files with 6 additions and 0 deletions
|
|
@ -156,6 +156,9 @@ namespace TShockAPI
|
|||
if (itemname == "KANNIBALE BLADE"
|
||||
|| itemname == "Super Gel")
|
||||
return Tools.HandleCheater(args.Player, string.Format(TShock.Config.GriefClientReason, "KANNIBALE"));
|
||||
if (Tools.GetItemByName(itemname).Count == 0 && !args.Player.Group.HasPermission(Permissions.ignorecheatdetection)
|
||||
&& TShock.Config.KickCustomItems)
|
||||
args.Player.Disconnect("Using custom item: " + itemname + ", remove it and region");
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue