Interface LastLoginPlayer
-
public interface LastLoginPlayer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetLastLogin()Get the last login timestamplonggetLastLogout()Get the last logout timestamp@NotNull StringgetName()Get the name@NotNull UUIDgetPlayerUUID()Get the playerUUIDbooleanisOnline()Is the player online?voidsetLastLogin(long timestamp)Set the last login timestampvoidsetLastLogout(long timestamp)Set the last logout timestampvoidsetName(@NotNull String name)Set the name
-
-
-
Method Detail
-
getPlayerUUID
@NotNull @NotNull UUID getPlayerUUID()
Get the playerUUID- Returns:
- the
UUIDof the player
-
getName
@NotNull @NotNull String getName()
Get the name- Returns:
- the name of the player
-
setName
void setName(@NotNull @NotNull String name)Set the name- Parameters:
name- the name to set
-
getLastLogin
long getLastLogin()
Get the last login timestamp- Returns:
- the last login timestamp, 0 if not exists
-
setLastLogin
void setLastLogin(long timestamp)
Set the last login timestamp- Parameters:
timestamp- the timestamp to set
-
getLastLogout
long getLastLogout()
Get the last logout timestamp- Returns:
- the last login timestamp, 0 if not exists
-
setLastLogout
void setLastLogout(long timestamp)
Set the last logout timestamp- Parameters:
timestamp- the timestamp to set
-
isOnline
boolean isOnline()
Is the player online?- Returns:
- true if the player is online
-
-