Перейти к содержимому
Mineforgian

Mogrul Lib

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

Загрузки
1K
Подписчики
0
Обновлён
4 сентября 2025 г.
Лицензия
CC-BY-NC-ND-4.0

Опубликован 1 сентября 2025 г.

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))

Ченджлог

0.2-1.21.1Релиз1.21.1 · 4 сентября 2025 г.

Added discordID to PlayerData and the ability to get PlayerData from discordID

0.1-1.21.1Релиз1.21.1 · 1 сентября 2025 г.

Initial Release.

Комментарии

Загружаем…