Change enum names for clarity

This commit is contained in:
Ruby Rose 2017-07-12 08:47:27 +03:00
parent 3764527d3d
commit 685d9964f0
5 changed files with 38 additions and 38 deletions

View file

@ -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>();