The leveling system now works. You can run /level to view your level, and when you reach enough level an event will be fired, and an event listener will run, sending a message to the player. Getting the custom events and listeners was the biggest pain, but I eventually decided on creating a StatChange event which runs whenever a stat is changed, and then the PlayerStatChange which extends StatChange while adding access to a player profile.
I also had add a method to calculate level based off of XP.
ALSO I finally uploaded to github! https://github.com/Mikeymoo5/MinecraftRPG/
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.