← Назад к ресурсам

Mogrul Lib

A small library mod intended to be used as an integration-tool for other Mogrul mods.

Modrinth library

Описание

# Mogrul Lib Mogrul lib is a small library mod created with the intention of making my mods integrated; instead of loading the SQL driver for every mod, this library does it for me. The library creates a .db file containing player data in config/Mogrul; api classes like PlayerData and Player to handle retrieving / updating player values within the library. # API ## PlayerData - **UUID** _uuid_: (Player UUID) - **String** _username_: (Player username) - **Instant** _firstJoined_: (First time player joined) - **Instant** _lastJoined_: (Last time player joined) - **String** _discordID_: (Discord ID of linked player) - **int** _playtimeMinutes_: (Player's time played) - **int** _currency_: (Player's currency) - **int** _bounty_: (Player's bounty) Player.get(ServerPlayer or String (username) or String (DiscordID) or UUID (uuid))