Table of Contents

Interface IConsoleEventHandler

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

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

commands FlatHashSetStringView

The 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

command string

The command name.

parameters string

The command parameters.

sender ConsoleCommandSenderData

Information about the command sender.

Returns

bool

true to 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)

Parameters

player IPlayer

The player attempting to login.

password string

The password used in the login attempt.

success bool

Whether the login was successful.