Superadmin is no longer kicked for any reason.
Don't know if there's a reason for not having this but I'd like to see this fixed.
This commit is contained in:
parent
e70a1cfcef
commit
934fa1731d
1 changed files with 1 additions and 1 deletions
|
|
@ -428,7 +428,7 @@ namespace TShockAPI
|
|||
|
||||
private static bool HandleBadPlayer(TSPlayer player, string overridePermission, bool ban, bool kick, string reason)
|
||||
{
|
||||
if (!player.Group.HasPermission(overridePermission))
|
||||
if (!player.Group.HasPermission(overridePermission) || !(player.Group.Name == "superadmin"))
|
||||
{
|
||||
if (ban)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue