Change enum names for clarity
This commit is contained in:
parent
3764527d3d
commit
685d9964f0
5 changed files with 38 additions and 38 deletions
|
|
@ -1265,10 +1265,10 @@ namespace TShockAPI
|
|||
/// <returns>True if the player has that permission.</returns>
|
||||
public bool HasPermission(string permission)
|
||||
{
|
||||
PermissionResult hookResult = PlayerHooks.OnPlayerPermission(this, permission);
|
||||
PermissionHookResult hookResult = PlayerHooks.OnPlayerPermission(this, permission);
|
||||
|
||||
if (hookResult != PermissionResult.Inconclusive)
|
||||
return hookResult == PermissionResult.Granted;
|
||||
if (hookResult != PermissionHookResult.Unhandled)
|
||||
return hookResult == PermissionHookResult.Granted;
|
||||
|
||||
if (tempGroup != null)
|
||||
return tempGroup.HasPermission(permission);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue