Class Player

Documentation of includes/core/player.class.php

Structure of a Player, contains information from GetPlayerInfo and GetDetailedPlayerInfo ListMethods response.

Methods

getWins

Returns the amount of how many times the Player won in total.

Description

int = getWins ( void )

Example

$wins = $player->getWins();

Return Values

32

getTimePlayed

Returns how long the player is online on the current dedicated server in seconds since the first login.

Description

int = getTimePlayed ( void )

Example

$online = $player->getTimePlayed();

Return Values

7634417

getTimeOnline

Returns how long the player is online today in seconds.

Description

int = getTimeOnline ( void )

Example

$online = $player->getTimeOnline();

Return Values

1800

getRecords

Returns a list of Map UIDs and the related records from a Player.

Description

array = getRecords ( void )

Example

$records = $player->getRecords();

Return Values

array(7) {
  ["LPPYseEb6GIQ5wDvlrrWztsdD_4"]=>
  int(1)
  ["QZX2H0Oq7Ixt2YHRAyTYcPbdOy3"]=>
  int(28)
  ["g6BQJO4wlyolDbhsLvau7R7g7Ml"]=>
  int(29)
  ["FgW4z80ZPAY8zqHxNKABg6n0342"]=>
  int(30)
  ["k72OVVjnagMGYrvG0E0byrvhKkl"]=>
  int(31)
  ["0CB2ZXEOwQaJBooOKVI5f8gjBag"]=>
  int(42)
  ["HQG7iA23WP_79vJeNghQwicWiCh"]=>
  int(43)
}

getRankFormated

Returns a formated server ranking string.

Description

string = getRankFormated ( void )

Example

$rank = $player->getRankFormated();

Return Values

12/29,871 Average: 14.00

getSpectatorStatus

Returns a value to check if the player is currently spectaing.

Description

boolean = getSpectatorStatus ( void )

Example

$status = $player->getSpectatorStatus();

Return Values

false

Class Player

Documentation of includes/core/player.class.php

Structure of a Player, contains information from GetPlayerInfo and GetDetailedPlayerInfo ListMethods response.

Properties

Members Example data Description
$player->id 1188 ID of the Player in the Database
$player->pid 237 ID of the Player at the dedicated Server
$player->login puennt_ennel  
$player->nickname $I$09Fぎтяα¢кєяѕ$AAA|$FFFυηפєғ $W$000'$F00'$FF0'  
$player->nickname_stripped ぎтяα¢кєяѕ|υηפєғ '''  
$player->nickname_slug ぎtrackers|undef '''  
$player->language de  
$player->avatar Skins/Avatars/my-very-own-avatar.dds  
$player->clublink http://www.example.com/clublink.xml  
$player->ip 77.23.200.000  
$player->port 2350  
$player->downloadrate 1835008  
$player->uploadrate 114688  
$player->is_official true  
$player->is_referee false  
$player->is_podium_ready true  
$player->is_using_stereoscopy false  
$player->is_managed_by_other_server false  
$player->is_server false  
$player->is_broadcasting false  
$player->has_joined_game true  
$player->has_player_slot true  
$player->is_spectator false  
$player->forced_spectator 0 0: user selectable, 1: spectator, 2: player, 3: spectator but keep selectable
$player->temporary_spectator false  
$player->pure_spectator false  
$player->target_autoselect false  
$player->target_spectating undef.de If not false, then this contains the login from a Player the current Player is spectating.
$player->team_id 1  
$player->allies array()  
$player->server_rank 14 Server rank
$player->server_rank_total 7027 Max. amount of server ranks
$player->server_rank_average 500.0 Server average
$player->ladder_rank 575  
$player->ladder_score 85340  
$player->last_match_score 0 The dedicated Server retrieves this value not on demand, it takes a while until this value is up-to-date
$player->nb_wins 24987  
$player->nb_draws 10721  
$player->nb_losses 15725  
$player->client v2014-07-11_16_43 (3.3.0)  
$player->created 1405188219 Timestamp of connection from the Player
$player->zone_inscription -1  
$player->zone array('Europe', 'Germany', 'Bremen')  
$player->continent Europe  
$player->nation GER  
$player->visits 154  
$player->wins 12  
$player->new_wins 1  
$player->time_played 1241  
$player->data array() Holds all Plugins settings
$player->unlocked false  
$player->pmbuf array()  
$player->mutelist array()  
$player->mutebuf array()  
$player->style array()  
$player->panels array()  
$player->panelbg array()  
$player->speclogin undef.de  
$player->dedirank 0  
$player->maplist array()  
$player->playerlist array()  
$player->msgs array()  

Class Player

Documentation of includes/core/player.class.php

Structure of a Player, contains information from GetPlayerInfo and GetDetailedPlayerInfo ListMethods response.

Constants

Constants Values
Players::PLAYERS 1
Players::OPERATORS 2
Players::ADMINS 4
Players::MASTERADMINS 8

Do NOT use the Values (e.g. 1 for Players::PLAYERS) directly, because these may be changed!

This is a private enthusiast Website. Maniaplanet, Trackmania, Shootmania, Nadeo are trademarks of Ubisoft Entertainment.
Windows is a registered trademark of Microsoft Corporation.

Last modified: Wed, 17 Apr 2019 22:20:57 +0200