-
-
All Methods Instance Methods Abstract Methods 修饰符和类 成员函数描述 Long
getFirstPlayed()
得到这个玩家第一次游戏的时间。
Returns the time this player first played in this server.Long
getLastPlayed()
得到这个玩家上次加入游戏的时间。
Returns the time this player last joined in this server.String
getName()
返回这个玩家的名称。
Returns the name of this player.Player
getPlayer()
得到这个接口的Player
对象。
Returns aPlayer
object for this interface.Server
getServer()
返回玩家所在的服务器。
Returns the server carrying this player.UUID
getUniqueId()
boolean
hasPlayedBefore()
返回这个玩家以前是否来过服务器。
Returns if this player has played in this server before.boolean
isBanned()
返回这个玩家是否被封禁(ban)。
Returns if this player is banned.boolean
isOnline()
返回这个玩家是否在线。
Returns if this player is online.boolean
isWhitelisted()
返回这个玩家是否已加入白名单。
Returns if this player is pardoned by whitelist.void
setBanned(boolean value)
设置这个玩家是否被封禁(ban)。
Sets this player to be banned or to be pardoned.void
setWhitelisted(boolean value)
把这个玩家加入白名单,或者取消这个玩家的白名单。
Adds this player to the white list, or removes it from the whitelist.
-