Mogrul Lib

Quick rating

Community listing page, reviews here may not be monitored by the author.

Mogrul Lib

No reviews yet

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

Mod Loaders
Minecraft

About

Description

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

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