Allow a player to run a command if the permissions are empty.
This commit is contained in:
parent
89571174ec
commit
f86ddf002e
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ namespace TShockAPI
|
|||
|
||||
public bool CanRun(TSPlayer ply)
|
||||
{
|
||||
if (Permissions == null)
|
||||
if (Permissions == null || Permissions.Count < 1)
|
||||
return true;
|
||||
foreach (var Permission in Permissions)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue