mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-21 19:42:37 -04:00
Fix /help for commands showing unused empty extra permissions
This commit is contained in:
parent
30a9535dae
commit
62502c3ec7
@ -50,11 +50,11 @@ namespace MCGalaxy.Commands {
|
||||
}
|
||||
|
||||
public static List<CommandExtraPerms> FindAll(string cmd) {
|
||||
List<CommandExtraPerms> allPerms = new List<CommandExtraPerms>();
|
||||
List<CommandExtraPerms> all = new List<CommandExtraPerms>();
|
||||
foreach (CommandExtraPerms perms in list) {
|
||||
if (perms.CmdName.CaselessEq(cmd)) allPerms.Add(perms);
|
||||
if (perms.CmdName.CaselessEq(cmd) && perms.Desc.Length > 0) all.Add(perms);
|
||||
}
|
||||
return allPerms;
|
||||
return all;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user