With this API you can easily integrate a Mana System into your plugin.
It doesn't save when the Player leaves! It will be added later.
Documentation:
Set the maximum amount of Mana a Player can have:
ManaApi.setMaxMana(Player player, int amount)
Set the current amount of Mana from a Player:
ManaApi.setCurrentMana(Player player, int amount)
Get the maximum amount of Mana a Player can have (returns int):
ManaApi.getMaxMana(Player player)
Get the current amount of Mana from a Player (returns int):
ManaApi.getCurrentMana(Player player)
Increase a Players maximum Mana amount:
ManaApi.addMaxMana(Player player, int amount)
Decrease a Players maximum Mana amount:
ManaApi.removeMaxMana(Player player, int amount)
Increase a Players current Mana amount:
ManaApi.addCurrentMana(Player player, int amount)
Decrease a Players current Mana amount:
ManaApi.removeCurrentMana(Player player, int amount)
Recover the Mana from a Player (recovers every minute):
ManaApi.recoverMana(Player player, float recoveryPercent)
Install:
- Add to your plugin
- Copy into Plugins folder on your Server
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta