Interface IConsoleEventHandler
Provides the events for GetEventDispatcher().
[OpenMpEventHandler]
public interface IConsoleEventHandler : IEventHandler<IConsoleEventHandler>
- Inherited Members
Methods
OnConsoleCommandListRequest(FlatHashSetStringView)
Called when a list of console commands is requested.
void OnConsoleCommandListRequest(FlatHashSetStringView commands)
Parameters
commandsFlatHashSetStringViewThe set of available commands.
OnConsoleText(string, string, ref ConsoleCommandSenderData)
Called when console text/command is entered.
bool OnConsoleText(string command, string parameters, ref ConsoleCommandSenderData sender)
Parameters
commandstringThe command name.
parametersstringThe command parameters.
senderConsoleCommandSenderDataInformation about the command sender.
Returns
- bool
trueto prevent further processing of the command; otherwise,false.
OnRconLoginAttempt(IPlayer, string, bool)
Called when an RCON login attempt is made.
void OnRconLoginAttempt(IPlayer player, string password, bool success)