gorcon / rcon-cli

RCON client for executing queries on game server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust with web rcon enabled

gdepre opened this issue · comments

using command ./rcon -t web -a x.x.x.x:28017 -p password the result is 'not implemented'

Command is sent from the server hosting the rust dedicated server

Set the command with -c flag. It runs command in single mode. Execute without commands in interactive mode is not implemented yet.

./rcon -t web -a x.x.x.x:28017 -p password -c players

working with -c flag.
how to implement commands like inventory.giveid "SteamID" "short name" "amount" containing double quotes ?

Try to escape qutes with backslash

./rcon -t web -a x.x.x.x:28017 -p password -c "inventory.giveid \"SteamID\" \"short name\" \"amount\""

Single quote enclosing should also work

./rcon -t web -a x.x.x.x:28017 -p password -c 'inventory.giveid "SteamID" "short name" "amount""

As far as I can see, not all commands in Rust give a response. inventory.giveid same as say command is one of them.

I checked qutes with command ban and it works

./rcon -e rustlocal -c 'ban "nonexistent player" "command testing"'
Player not found

Interactive mode vaw added in v0.8.0-beta.2

Now you can use ./rcon -t web -a x.x.x.x:28017 -p password without command and type them in terminal window. Please check it.

working with 0.8.0 beta 2