Placeholders

LastLoginAPI can be used with PlaceholderAPI (or EssentialsChat) to output information about players.

PlaceholderAPI EssentialsChat Description
%lastloginapi_name% {LASTLOGINAPI_NAME} The player name
%lastloginapi_last_login_date% {LASTLOGINAPI_LAST_LOGIN_DATE} Latest login of the player as date (format it via config.yml)
%lastloginapi_last_login_elapsed% {LASTLOGINAPI_LAST_LOGIN_ELAPSED} Elapsed time since latest player login (format it via config.yml)
%lastloginapi_last_logout_date% {LASTLOGINAPI_LAST_LOGOUT_DATE} Latest logout of the player as date (format it via config.yml)
%lastloginapi_last_logout_elapsed% {LASTLOGINAPI_LAST_LOGOUT_ELAPSED} Elapsed time since latest player logout (format it via config.yml)

If you are using MvdW PlaceholderAPI, you need to use {placeholderapi_lastloginapi_TAG}.