Pluton.Events.ClientConsoleEvent.ClientConsoleEvent C# (CSharp) 메소드

ClientConsoleEvent() 공개 메소드

public ClientConsoleEvent ( ConsoleSystem arg, string rconCmd ) : System
arg ConsoleSystem
rconCmd string
리턴 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);
        }