Hello everyone. If a player levels up (eg level 2 to level 3) I would like them to execute a predefined command. thankyou, Jamesterjim.
You might be able to make a loop that checks the players level, saves it to a hash-map or array-list and then if the value equals a certain amount make the player run a command.
Check out the PlayerLevelChangeEvent http://jd.bukkit.org/beta/apidocs/org/bukkit/event/player/PlayerLevelChangeEvent.html