Alright... firstly, you should next time specify before or after which line of code instead of just saying going to line??? cause some people's code may not be exactly the same. Also, I am pretty sure that is not how the bgm should play.
Maybe try this instead
Ulithium_Dragon's Rock Climb with Overworld Animation
Pokémon Essentials V19.1 Support
[V18.1 is still supported, just won't receive updates unless someone can change my mind]
V18.1 [Up to 1.1 Update]
V19.1 [Up to 1.2 Update]
About
This is a resource originally created by...
DarrylhoBD submitted a new resource:
Ulithium_Dragon's Rock Climb with Overworld Animation - Brings Rock Climbing from DPPT and adds overworld animations for Rock Climbing.
Read more about this resource...
I tested it and it is able to hard cap Rare Candy, but it doesn't really work when it comes to battling and exp candy...
Edit: Found my problem, I just changed all pkmn.level>levelCap to pkmn.level>=levelCap (except for rare candy). Not sure if this is a mistake...