Chat command output not showingSolved
Hey, Sorry if I'm posting in the wrong place but when I try and use PrintToChat it doesn't work



public class Test : RustPlugin
{
[ChatCommand("test")]
private void TestCommand(IPlayer player, string command, string[] args)
{
try
{
PrintToChat("This works");
}
catch (Exception ex)
{
PrintToChat("This works failed");
}
}

Does anyone know why it doesn't send anything in-game?

Thanks in advance 
Hey!
AFAIK 1. there should be more args and 2. IPlayer is for Command, NOT ChatCommand ? isnt it

Merged post

EDIT: It's ok with args
In response to misticos ():
Hey!
AFAIK 1. there should be more args and 2. IPlayer is for Command, NOT ChatCommand ? isnt i...
Hey thanks, you were right with the Iplayer bit, It should be a BasePlayer. Thank you sooo much
Locked automatically