API

FirstLastSeen contains two static methods in its main class "FirstLastSeen ", they are "getFirstSeenLong(String playerName)" and "getLastSeenLong(String playerName)"

To use these, you must do the following:

  • Add FirstLastSeen to your "depend" in your plugin.yml
  • Add the FirstLastSeen.jar to your build path
  • Call FirstLastSeen.getFirstSeenLong or FirstLastSeen.getLastSeenLong whenever you need it!

The long data returned is of the same type as System.getCurrentTimeInMillis();, which is to say it is the unix timestamp in milliseconds.

FirstLastSeen's methods will return -1 when it encounters an error, or when there is no data, so be sure to check for -1 on your returned long!


Comments

Posts Quoted:
Reply
Clear All Quotes