Allow a player to run a command if the permissions are empty.

This commit is contained in:
Scavenger3 2013-06-26 21:18:41 +10:00
parent 89571174ec
commit f86ddf002e

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)
{ {