Table of Contents

Interface IPlayerTextEventHandler

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

Provides the events for GetPlayerTextDispatcher().

[OpenMpEventHandler]
public interface IPlayerTextEventHandler : IEventHandler<IPlayerTextEventHandler>
Inherited Members

Methods

OnPlayerCommandText(IPlayer, string)

Called when a player sends a command text.

bool OnPlayerCommandText(IPlayer player, string message)

Parameters

player IPlayer

The player who sent the command.

message string

The command text sent by the player.

Returns

bool

true if the command has been processed; otherwise, false.

OnPlayerText(IPlayer, string)

Called when a player sends a text message.

bool OnPlayerText(IPlayer player, string message)

Parameters

player IPlayer

The player who sent the message.

message string

The text message sent by the player.

Returns

bool

true if the message should be displayed; otherwise, false.