1. So I'm currently learning how to make a plugin I know how to make a chat command and get players steamid and display name and a bit of reflection. But I'm a bit confused on the getting the player who called the command. How would this be performed? So when they call a command you get the player.
     
  2. Wulf

    Wulf Community Admin

    If you re using reflection to get that info, you are doing it wrong. Perhaps you mean a different word?

    A player (BasePlayer for Rust) is provided via hooks or is inside of the type that is provided by the hook. So it really depends on what you want to access it with. For who ran the command, the player can be obtained from the arg.Connection.user I believe, but you should doublecheck that by setting up IntelliSense in Visual Studio or look’ing in the game DLLs.