Sending reply to console command with Covalence?Solved
Hi,

How do you respond to rcon command?

In RustPlugin I used to have SendReply(arg, "reply") but this does not work with covalence?
I'm upgrading some plugins and want to move to CovalencePlugin type

Thanks
SendReply is a RustPlugin-specifc helper, so it would not work.

[Command("commandname")]
private void CommandName(IPlayer player, string command, string[] args)
{
    player.Reply("Yo man, this is your reply");
}​
@Wulf

I know that, but I'm looking for a solution for ConsoleComamnd that is executed via RCON:

[ConsoleCommand(giveCommand)]
void ccmdGive(ConsoleSystem.Arg arg) {
        SendReply(arg, replyJSON("-314", "error", Lang("ArgumentsError", "three")));
}​

How do I reply to RCON command in Covalence Plugin?
[Command("commandname")]
private void CommandName(IPlayer player, string command, string[] args)
{
    player.Reply("Yo man, this is your reply");
}

Commands are both chat and console.

I don't get it. I connect to my rust server via webRCON websocket.
There is not player. Or is player null for remote RCON commands?
I think he means that when a command comes from the console, the player.Reply goes to the console.
yea, I got that. 

I'm asking how to reply to RCON command that comes over WebRCON sockets. 
Just like SendReply did in RustPlugin. What is the equvivalent in CovalencePlugin for remote RCON commands.
How to send the data back over RCON socket?
rmamba
yea, I got that. 

I'm asking how to reply to RCON command that comes over WebRCON sockets. 
Just like SendReply did in RustPlugin. What is the equvivalent in CovalencePlugin for remote RCON commands.
How to send the data back over RCON socket?

The IPlayer.Reply is the only way, as mentioned before. There is no specific reply to that specific RCON connection at this time.

Locked automatically