Class Interpreter
- ManiaLib\Utils\Singleton
- ManiaLive\Features\ChatCommand\Interpreter implements ManiaLive\DedicatedApi\Callback\Listener
Namespace: ManiaLive\Features\ChatCommand
Located at libraries/ManiaLive/Features/ChatCommand/Interpreter.php
protected
|
|
public
|
#
register(
Use this method to register a new Command Once register the command can be used |
public
integer
|
#
isRegistered( string $commandName, integer $parametersCount = -2 )
Check if the given command with the number of argument given exists |
public
|
|
public
|
#
unregister(
Unregister the given Command Once unregistered a command is no more available |
public
|
#
onPlayerChat( integer $playerUid, string $login, string $text, boolean $isRegistredCmd )
Method called when a Player chat on the server |
public
|
|
public
|
|
public
|
#
onPlayerConnect( string $login, boolean $isSpectator )
Method called when a Player join the server |
public
|
|
public
|
#
onPlayerManialinkPageAnswer( integer $playerUid, string $login, integer $answer, array $entries )
Method called when a Answer to a Manialink Page difference with previous TM: this is not called if the player doesn't answer, and thus '0' is also a valid answer. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
onEndMatch( SPlayerRanking[] $rankings, integer|SMapInfo $winnerTeamOrMap )
Method called when the Race Ended struct of SPlayerRanking is a part of the structure of DedicatedApi\Structures\Player object struct SPlayerRanking { string Login; string NickName; int PlayerId; int Rank; [for legacy TrackMania modes also: int BestTime; int[] BestCheckpoints; int Score; int NbrLapsFinished; double LadderScore; ] } |
public
|
#
onBeginMap( SMapInfo $map, boolean $warmUp, boolean $matchContinuation )
Method called when a map begin |
public
|
|
public
|
|
public
|
|
public
|
#
onStatusChanged( integer $statusCode, string $statusName )
Method called when the server status change |
public
|
#
onPlayerCheckpoint( integer $playerUid, string $login, integer $timeOrScore, integer $curLap, integer $checkpointIndex )
Method called when a player cross a checkPoint |
public
|
#
onPlayerFinish( integer $playerUid, string $login, integer $timeOrScore )
Method called when a player finish a round |
public
|
#
onPlayerIncoherence( integer $playerUid, string $login )
Method called when there is an incoherence with a player data |
public
|
#
onBillUpdated( integer $billId, integer $state, string $stateName, integer $transactionId )
Method called when a bill is updated |
public
|
#
onTunnelDataReceived( integer $playerUid, string $login, base64 $data )
Method called server receive data |
public
|
#
onMapListModified( integer $curMapIndex, integer $nextMapIndex, boolean $isListModified )
Method called when the map list is modified |
public
|
|
public
|
|
public
|
#
onVoteUpdated( string $stateName, string $login, string $cmdName, string $cmdParam )
Method called when a vote change of State |
public
|
__clone(),
getInstance()
|
integer |
NOT_REGISTERED_AT_ALL
|
0 |
|
integer |
REGISTERED_DIFFERENTLY
|
1 |
|
integer |
REGISTERED_AS_POLYMORPHIC
|
2 |
|
integer |
REGISTERED_EXACTLY
|
3 |
$instances
|