1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-13 16:48:27 -05:00

more plugin tweaks, added console interface!

This commit is contained in:
RaidMax
2015-08-22 01:04:30 -05:00
parent 7ca0b654ac
commit d42a329097
24 changed files with 235 additions and 166 deletions

View File

@ -58,21 +58,15 @@ namespace SharedLibrary
public Command isValidCMD(List<Command> list)
{
if (this.Data.Substring(0, 1) == "!")
string[] cmd = this.Data.Substring(1, this.Data.Length - 1).Split(' ');
foreach (Command C in list)
{
string[] cmd = this.Data.Substring(1, this.Data.Length - 1).Split(' ');
foreach (Command C in list)
{
if (C.Name == cmd[0].ToLower() || C.Alias == cmd[0].ToLower())
return C;
}
return null;
if (C.Name == cmd[0].ToLower() || C.Alias == cmd[0].ToLower())
return C;
}
else
return null;
return null;
}
public static Event requestEvent(String[] line, Server SV)