Commands can have more than one permission.

This commit is contained in:
Scavenger3 2012-10-03 23:27:59 +10:00
parent b9099757fb
commit d943367765
2 changed files with 19 additions and 6 deletions

View file

@ -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>