public bool Can(Permission permission, Rank rank) { return(Rank.Can(permission, rank)); }
/// <summary> Whether or not this player has the ability to affect the target rank, using the specified permission. </summary> /// <param name="permission"> Permission to check if the player had. </param> /// <param name="targetRank"> Player to check if this player has permission to affect. </param> /// <returns> True if the player has permission, otherwise false. </returns> public bool Can(Permission permission, [NotNull] Rank targetRank) { return(IsSuper || Rank.Can(permission, targetRank)); }
public bool Can(Permission permission) { return(Rank.Can(permission)); }
/// <summary> Whether or not this player has the specified permission. </summary> /// <param name="permission"> Permission to check if the player has. </param> /// <returns> True if the player has permission, otherwise false. </returns> public bool Can(Permission permission) { return(IsSuper || Rank.Can(permission)); }