Started work on revamping command system for permissions, but I'm out for the night, cya tomorrow

This commit is contained in:
Maverick Motherfucker 2011-06-03 22:28:05 -07:00
parent 3774c30f7d
commit 8344801128
6 changed files with 70 additions and 1 deletions

View file

@ -35,6 +35,10 @@ namespace TShockAPI
public virtual bool HasPermission(string permission)
{
if (permission.Equals(""))
{
return true;
}
if (negatedPermissions.Contains(permission))
{
return false;