Skip to content

Commit

Permalink
removed HasPermissions
Browse files Browse the repository at this point in the history
  • Loading branch information
fr34kyn01535 committed Apr 19, 2015
1 parent dc94253 commit f05c4dd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CommandKit.cs
Expand Up @@ -40,7 +40,7 @@ public void Execute(RocketPlayer caller, string command)
return;
}

bool hasPermissions = caller.HasPermission("kit.*") || RocketPermissionManager.GetPermissions(caller.CSteamID).Where(p => p.ToLower() == ("kit." + command.Trim().ToLower())).FirstOrDefault() != null;
bool hasPermissions = caller.Permissions.Contains("kit.*") || RocketPermissionManager.GetPermissions(caller.CSteamID).Where(p => p.ToLower() == ("kit." + command.Trim().ToLower())).FirstOrDefault() != null;

if (!hasPermissions)
{
Expand Down
Binary file modified lib/Assembly-CSharp.dll
Binary file not shown.
Binary file modified lib/RocketAPI.dll
Binary file not shown.

0 comments on commit f05c4dd

Please sign in to comment.