Merge pull request #461 from Scavenger3/InfPermissions

Commands can have more than one permission.
This commit is contained in:
Lucas Nicodemus 2012-12-14 12:55:39 -08:00
commit 88a9c05220
2 changed files with 19 additions and 6 deletions

View file

@ -191,7 +191,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>