Skip to content

Commit b96d2ea

Browse files
committed
Fixed ignore permission when Perm list is empty
1 parent f711b4c commit b96d2ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CustomCommands/Functions.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ private void AddCommands(Commands com)
3838
AddCommand(aliases[i], com.Description, (player, info) =>
3939
{
4040
if (player == null) return;
41-
if (!RequiresPermissions(player, com.Permission))
42-
return;
41+
42+
if (com.Permission.PermissionList.Count >= 1)
43+
if (!RequiresPermissions(player, com.Permission))
44+
return;
4345

4446
TriggerMessage(player, com);
4547
ExecuteServerCommands(com);

0 commit comments

Comments
 (0)