1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

Plugins loaded dynamically, some more bug fixes

This commit is contained in:
RaidMax
2015-08-22 11:41:14 -05:00
parent d42a329097
commit 38c8f81051
12 changed files with 69 additions and 19 deletions

View File

@ -189,22 +189,24 @@ namespace IW4MAdmin
else
{
int count = 0;
String _commands = String.Empty;
StringBuilder helpResponse = new StringBuilder();
List<Command> test = E.Owner.getCommands();
foreach (Command C in E.Owner.getCommands())
foreach (Command C in test)
{
if (E.Origin.Level >= C.Permission)
{
_commands = _commands + " [^3" + C.Name + "^7] ";
helpResponse.Append(" [^3" + C.Name + "^7] ");
if (count >= 4)
{
E.Origin.Tell(_commands);
_commands = String.Empty;
E.Origin.Tell(helpResponse.ToString());
helpResponse = new StringBuilder();
count = 0;
}
count++;
}
}
E.Origin.Tell(helpResponse.ToString());
E.Origin.Tell("Type !help <cmd> to get command usage example");
}
}