1. Hiya,

    I'm trying to get the IP address of anyone using an RCON command on my server - I found this in the docs:

    Code:
    void OnRconCommand(string ip, string command, string[] args) {
        Puts("OnRconCommand works!");
    }
    but it isn't doing anything when I do something like:

    Code:
    inventory.giveall wood 2000
    in RustDroid - which I know my admins use.

    Any advice on getting this to work?
     
  2. Wulf

    Wulf Community Admin

    Mmm, try OnRconCommand(IPAddress ip, string command, string[] args). Looks like we have it calling as that right now.
     
  3. Nice - that works much better :)

    I don't suppose there is a handy way to get the actual command that was used, I thought that was what 'command' would be :\ if not, then what I've got will work for now.


    As always, thanks Wulf!
     
  4. Wulf

    Wulf Community Admin

    It should show; what are you seeing with it now?
     
  5. command returns what type of command, so for a teleport it returns 'teleport', not the full command with names etc. Others I've seen are 'inventory.giveto', 'inventory.giveall' where it doesn't show what was given or to who; and single commands like 'status' and 'playerlist'.
     
  6. Wulf

    Wulf Community Admin

    The command is what you are getting, the args are what follow a command.
     
  7. Ahh, cool. Nice one.


    :)
     
  8. All commands not work console anymore.idk why but when i try to use:
    Unload pluginname command not do anything
     
  9. Wulf

    Wulf Community Admin

    See the announcements section or changelog for Oxide. Also, this thread is unrelated to your question.