geforkt von Mirrors/Paper
Added OfflinePlayer + Player .getLastPlayed, .getFirstPlayed, .hasPlayedBefore
By: Nathan Adams <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Ursprung
602f06a913
Commit
f6bfce4fa1
@ -57,4 +57,31 @@ public interface OfflinePlayer extends ServerOperator, AnimalTamer, Configuratio
|
|||||||
* @return Online player
|
* @return Online player
|
||||||
*/
|
*/
|
||||||
public Player getPlayer();
|
public Player getPlayer();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the first date and time that this player was witnessed on this server.
|
||||||
|
* <p>
|
||||||
|
* If the player has never played before, this will return 0. Otherwise, it will be
|
||||||
|
* the amount of milliseconds since midnight, January 1, 1970 UTC.
|
||||||
|
*
|
||||||
|
* @return Date of first log-in for this player, or 0
|
||||||
|
*/
|
||||||
|
public long getFirstPlayed();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the last date and time that this player was witnessed on this server.
|
||||||
|
* <p>
|
||||||
|
* If the player has never played before, this will return 0. Otherwise, it will be
|
||||||
|
* the amount of milliseconds since midnight, January 1, 1970 UTC.
|
||||||
|
*
|
||||||
|
* @return Date of last log-in for this player, or 0
|
||||||
|
*/
|
||||||
|
public long getLastPlayed();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if this player has played on this server before.
|
||||||
|
*
|
||||||
|
* @return True if the player has played before, otherwise false
|
||||||
|
*/
|
||||||
|
public boolean hasPlayedBefore();
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren