Change enum names for clarity
This commit is contained in:
parent
3764527d3d
commit
685d9964f0
5 changed files with 38 additions and 38 deletions
|
|
@ -201,9 +201,9 @@ namespace TShockAPI.DB
|
|||
if (ply.HasPermission(Permissions.usebanneditem))
|
||||
return true;
|
||||
|
||||
PermissionResult hookResult = PlayerHooks.OnPlayerItembanPermission(ply, this);
|
||||
if (hookResult != PermissionResult.Inconclusive)
|
||||
return hookResult == PermissionResult.Granted;
|
||||
PermissionHookResult hookResult = PlayerHooks.OnPlayerItembanPermission(ply, this);
|
||||
if (hookResult != PermissionHookResult.Unhandled)
|
||||
return hookResult == PermissionHookResult.Granted;
|
||||
|
||||
var cur = ply.Group;
|
||||
var traversed = new List<Group>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue