Merge pull request #299 from erikive/patch-5
Superadmin is no longer kicked for any reason. Looks good to me.
This commit is contained in:
commit
c8498163a0
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