public ClientConsoleEvent ( ConsoleSystem arg, string rconCmd ) : System | ||
arg | ConsoleSystem | |
rconCmd | string | |
return | System |
public ClientConsoleEvent(ConsoleSystem.Arg arg, string rconCmd)
{
Internal = arg;
User = Server.GetPlayer((BasePlayer)arg.connection.player);
Args = new List<string>();
Reply = "Command not found!";
if (String.IsNullOrEmpty(rconCmd))
return;
foreach (string str in rconCmd.Split(' '))
Args.Add(str);
Cmd = Args[0];
Args.RemoveAt(0);
}