Web Scripts

From MinecraftOnline
Jump to navigation Jump to search

Web Scripts

Similar to Server Scripts, some information can be accessed externally with cgi-bin shell scripts.

These are located at https://minecraftonline.com/cgi-bin

Scripts

The following scripts will return NOTFOUND if the player queried for is not found.

Or INVALID if the input is invalid.

getcorrectname

Description: Gets the full username of a player.

Params: Partial player username.

Returns: Player's full username and correct casing.

getfirstseen

Description: Gets the first join date of a user.

Params: Player username.

Returns: Player's first join date, formatted.

getfirstseen_unix

Description: Gets the first join date of a user in unix epoch time format.

Params: Player username.

Returns: Player's first join date, in unix epoch.

getlastseen

Description: Gets the first last date of a user.

Params: Player username.

Returns: Player's last join date, formatted.

getlastseen_unix

Description: Gets the last join date of a user in unix epoch time format.

Params: Player username.

Returns: Player's last join date, in unix epoch.

gettimeonline

Description: Gets a player's time online.

Params: Player username.

Returns: Player's time online, in seconds

Example usage

TODO: the rest of this page lmao -SlimeDiamond 12/07/2023