Started work on revamping command system for permissions, but I'm out for the night, cya tomorrow
This commit is contained in:
parent
3774c30f7d
commit
8344801128
6 changed files with 70 additions and 1 deletions
|
|
@ -35,6 +35,10 @@ namespace TShockAPI
|
|||
|
||||
public virtual bool HasPermission(string permission)
|
||||
{
|
||||
if (permission.Equals(""))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (negatedPermissions.Contains(permission))
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue