From f86ddf002e6d3bc9da26c7206dfe8bfef8364fb6 Mon Sep 17 00:00:00 2001 From: Scavenger3 Date: Wed, 26 Jun 2013 21:18:41 +1000 Subject: [PATCH] Allow a player to run a command if the permissions are empty. --- TShockAPI/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index a6a561e7..40bc8756 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -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) {