Merge pull request #484 from Scavenger3/patch-1

Allow a player to run a command if the permissions are empty.
This commit is contained in:
Lucas Nicodemus 2013-06-26 05:33:36 -07:00
commit 192210c3f4

View file

@ -118,7 +118,7 @@ namespace TShockAPI
public bool CanRun(TSPlayer ply) public bool CanRun(TSPlayer ply)
{ {
if (Permissions == null) if (Permissions == null || Permissions.Count < 1)
return true; return true;
foreach (var Permission in Permissions) foreach (var Permission in Permissions)
{ {