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:
commit
192210c3f4
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue