目录

The PlayerExtraInfo class returns additional information about a player. An object of the PlayerExtraInfo type is returned when the getPlayerExtraInfo method of PlayersClient is called.

Public Method Summary

Return

Method

boolean

getIsAdult()

Checks whether a player is an adult.

String

getPlayerId()

Obtains the ID of the current player.

int

getPlayerDuration()

Obtains the played time of a player on the current day, in minutes.

boolean

getIsRealName()

Checks whether a player is a real-name player.

Public Methods

public boolean getIsAdult()

Checks whether a player is an adult.

Return Values

Type

Description

boolean

Indicates whether a player is an adult.

  • true: The player is an adult.

  • false: The player is not an adult.

public String getPlayerId()

Obtains the ID of the current player.

Return Values

Type

Description

String

ID of the current player.

public int getPlayerDuration()

Obtains the played time of a player on the current day.

Return Values

Type

Description

int

Played time of a player on the current day, in minutes. If the time is less than 1 minute, 1 minute is returned.

public boolean getIsRealName()

Checks whether a player is a real-name player.

Return Values

Type

Description

boolean

Indicates whether a player is a real-name player.

  • true: The player is a real-name player.

  • false: The player is not a real-name player.