1. Rebajas

    Rebajas Wood Hoarder

    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 (Text):
    void OnRconCommand(string ip, string command, string[] args) {
        Puts("OnRconCommand works!");
    }
    but it isn't doing anything when I do something like:

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

    Any advice on getting this to work?
     
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Mmm, try OnRconCommand(IPAddress ip, string command, string[] args). Looks like we have it calling as that right now.
     
    Rebajas likes this.
  3. Rebajas

    Rebajas Wood Hoarder

    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 Community Admin Oxide Developer

    It should show; what are you seeing with it now?
     
  5. Rebajas

    Rebajas Wood Hoarder

    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 Community Admin Oxide Developer

    The command is what you are getting, the args are what follow a command.
     
  7. Rebajas

    Rebajas Wood Hoarder

    Ahh, cool. Nice one.


    :)
     
  8. Shadow 8

    Shadow 8 Shack Builder Plugin Developer

    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 Community Admin Oxide Developer

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