Skip to content

Instantly share code, notes, and snippets.

View Asheiou's full-sized avatar
🏠
Working from home

Ash Thawley Asheiou

🏠
Working from home
View GitHub Profile
@Asheiou
Asheiou / .UPDATE.md
Last active May 26, 2025 04:31 — forked from RichardB122/ExperienceManager.java
A simple and easy to use class that can get and set a player's total experience points in Minecraft. This is based off the Bukkit API. The determines this with a mathematical formula based off the player's current level and their progress towards the next one.

Hello <o/

I stumbled across this awesome resource by @RichardB122, and it just needed a small change to work without a deprication warning in Java 9+. I also fixed a bug that @Jmbeard96 pointed out in the comments of the original Gist that the class cannot set the value of 351 XP due to an unhandled case in the if statements. I hope this is useful to someone - it's definitely been useful to me in my personal plugin!

-Ash