Hiya,
I'm trying to get the IP address of anyone using an RCON command on my server - I found this in the docs:
but it isn't doing anything when I do something like:Code:void OnRconCommand(string ip, string command, string[] args) { Puts("OnRconCommand works!"); }
in RustDroid - which I know my admins use.Code:inventory.giveall wood 2000
Any advice on getting this to work?
OnRconCommand not working (for me)
Discussion in 'Rust Development' started by Rebajas, Oct 12, 2017.
-
Wulf Community Admin
Mmm, try OnRconCommand(IPAddress ip, string command, string[] args). Looks like we have it calling as that right now.
-
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! -
Wulf Community Admin
-
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'.
-
Wulf Community Admin
-
Ahh, cool. Nice one.
-
All commands not work console anymore.idk why but when i try to use:
Unload pluginname command not do anything -
Wulf Community Admin