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

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