Renamed Solution... I'm picky and its easier to track what VS Solution is open in the taskbar.
Removed old kick/ban system for griefing and hacks. Cheating detection redone to stop inventory editors going above the normal limits. Revamped KillTile abuse detection to be always on. Removed old hacks/exploit detection for exploits fixed by Redigit properly. Removed some permissions and added one for killtile abuse detection. Removed old configurations that are not used anymore. AntiHack/Protection System COMPLETELY revamped to properly block and revert all actions that are abusive. Item Ban List is now the primary method to control various griefing items. To block Explosives or Sandguns or other items, use the Item Ban List. Banned items are able to exist in your inventory but the server will ignore all attempts to use those items. To protect against hack clients doing world edit type actions, use regions and spawn protection.
This commit is contained in:
parent
7e3fd905da
commit
8a62df9ebb
8 changed files with 514 additions and 534 deletions
|
|
@ -455,32 +455,13 @@ namespace TShockAPI
|
|||
|
||||
public bool HandleCheater(TSPlayer player, string reason)
|
||||
{
|
||||
return HandleBadPlayer(player, "ignorecheatdetection", TShock.Config.BanCheaters, TShock.Config.KickCheaters, reason);
|
||||
return HandleBadPlayer(player, "ignorecheatdetection", TShock.Config.KickCheaters, reason);
|
||||
}
|
||||
|
||||
public bool HandleGriefer(TSPlayer player, string reason)
|
||||
{
|
||||
return HandleBadPlayer(player, Permissions.ignoregriefdetection, TShock.Config.BanGriefers, TShock.Config.KickGriefers, reason);
|
||||
}
|
||||
|
||||
public bool HandleTntUser(TSPlayer player, string reason)
|
||||
{
|
||||
return HandleBadPlayer(player, Permissions.ignoregriefdetection, TShock.Config.BanKillTileAbusers, TShock.Config.KickKillTileAbusers, reason);
|
||||
}
|
||||
|
||||
public bool HandleExplosivesUser(TSPlayer player, string reason)
|
||||
{
|
||||
return HandleBadPlayer(player, Permissions.ignoregriefdetection, TShock.Config.BanExplosives, TShock.Config.KickExplosives, reason);
|
||||
}
|
||||
|
||||
private bool HandleBadPlayer(TSPlayer player, string overridePermission, bool ban, bool kick, string reason)
|
||||
private bool HandleBadPlayer(TSPlayer player, string overridePermission, bool kick, string reason)
|
||||
{
|
||||
if (!player.Group.HasPermission(overridePermission) || !(player.Group.Name == "superadmin"))
|
||||
{
|
||||
if (ban)
|
||||
{
|
||||
return Ban(player, reason);
|
||||
}
|
||||
if (kick)
|
||||
{
|
||||
return Kick(player, reason);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue