OnPlayerOfflineChat hook not being calledSolved
Hello, why this method not work for me? (CovalencePlugin)
It worked a couple of times, but now it doesn't work.
Test code:
private void OnPlayerOfflineChat(string playerName, ulong playerId, string message, Chat.ChatChannel channel) => Puts("OnPlayerOfflineChat: OK");​
I change this
ulong playerId​

to

IPlayer player

Effect 0

That hook is only applicable for Rust+ users. 

private void OnPlayerOfflineChat(ulong playerId, string playerName, string message, Chat.ChatChannel channel)
Hi, i have Rust+(Port opened, users communicate freely)
Rust+
Do you have the signature set as above?
Yes, he worked for about two hours (Week or two weeks back)
What you provided isn't the same as what I provided above.
Sorry, not paid enough attention :)
Thanks, this worked. "OnPlayerOfflineChat: OK"

Merged post

How add chat channel for this? Log("chat", "PlayerMessage", playerName, playerId, message)
You would just convert the channel to a string and put it with your message. There is not channel handling with logs.
Can you help please?)
string.Format("[{0}] {1}", channel, message) (i have error: FormatException Index (zero based))

Merged post

Thanks for help :)
Were you able to work it out? Generally that error would mean the args you are supplying to string.Format aren't the format expected or are not set.
Almost :)
"[Rust+ Team] "+message
Locked automatically