/
Bug Fixes & Compatibility Improvements
keepInventory gamerule.Players can now pay for lives and upgrades using three different currencies:
How it works:
New Config Options:
# Allow players to pay with emeralds instead of money
allow-emerald-payment: true
# Allow players to pay with XP levels instead of money
allow-xp-payment: true
# How much money 1 emerald is worth
# Example: If emerald-value is 100 and cost-per-life is 500, one life costs 5 emeralds
emerald-value: 100
# How much money 1 XP level is worth
# Example: If xp-level-value is 50 and cost-per-life is 500, one life costs 10 XP levels
xp-level-value: 50
Server owners can disable either alternative currency by setting allow-emerald-payment: false or allow-xp-payment: false.
config.yml and messages.ymlFull Compatibility: Minecraft 1.21.0 - 1.21.11
keepInventory gamerule is set to true, the plugin will not consume any lives (vanilla already handles it)messages.yml& (e.g., &a for green, &c for red, &d for light purple){amount} - number of lives{lives} - "life" or "lives" (grammatically correct){player} - player name{cost} - formatted cost{balance} - player's balance{limit} - life limit{time} - formatted time{remaining} - remaining lives/ki reload to reload messages without restarting the serverconfig.yml are now preserved when the server startsEntityResurrectEvent listener to detect vanilla totem activationcopyDefaults() to saveResource() for config loadingreloadPluginConfig() method for hot-reloading both configslives-on-join / include-lives-on-join / join-timer systemplayerdata.yml under timerAccumulateduse-timer: Enable/disable the timer systemtimer-lives: How many lives to award when timer firestimer-duration: Seconds of play time requiredParticle.DUST when ProtocolLib is absentsoftdepend in plugin.ymlCustomSwirlingTask class for animated floating totem effectITEM_TOTEM_USE sound/ki buy command/ki upgrade commandgetBalance() check before withdrawPlayer() callsapi-version: '1.21' in plugin.yml provides forward compatibilityKIMainGui - Main menu with Buy, Upgrade, View Lives, Help, Admin Panel optionsKIBuyGui - Cart-based purchase system for buying livesKIUpgradeGui - Cart-based upgrade system for converting lives to KeepTotemKIAdminGui - Player list for administratorsKIAdminPlayerGui - Per-player management (add/remove/reset lives)KIGuiListener - Handles all GUI interactions