1. Following the documentation here: http://docs.oxidemod.org/rust/#console-commands

    I see that there is no BasePlayer for a ConsoleCommand - how would I be able to get the current player issuing the console command?

    Would the following work?
    Code:
            [ConsoleCommand("command")]
            private void SuicideHandler(ConsoleSystem.Arg arg)
            {
                var basePlayer = arg.Player();
            }
    
     
    Last edited by a moderator: Jun 22, 2015
  2. Its arg.connection.player
     
  3. Thank you