Delegate ChatCommand
Delegate for chat commands.
public delegate bool ChatCommand(IPlayerCharacter character, ChatBroadcast msg)
Parameters
characterIPlayerCharacter- Delegate for chat commands.
msgChatBroadcast- Delegate for chat commands.
Returns
- bool
- Delegate for chat commands.
Remarks
The return value is currently ignored by TryParseCommand(string, IPlayerCharacter, ChatBroadcast): a slash command is consumed and never written to the chat log, whatever it returns. It was documented as "true if the chat message should be written to the database", which was never honoured — persisting a command would need a channel and a sanitized body it does not have. Kept in the signature so every existing command compiles unchanged.