Commands can have more than one permission.
This commit is contained in:
parent
b9099757fb
commit
d943367765
2 changed files with 19 additions and 6 deletions
|
|
@ -189,7 +189,7 @@ namespace TShockAPI
|
|||
{
|
||||
if (Commands.ChatCommands.Count < 1)
|
||||
Commands.InitCommands();
|
||||
return Commands.ChatCommands.Where(c => c.Permission == perm).ToList();
|
||||
return Commands.ChatCommands.Where(c => c.Permissions.Contains(perm)).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue