RPGClasses

RPGClasses 1.0.3

Rakilem

Member
Hi 👋, thanks a lot for your plugin RPGClasses, it’s really complete and I love the idea of having an RPG system in Nukkit.


However, I ran into an error when starting the server:



Caused by: java.lang.NullPointerException:
Cannot invoke "cn.nukkit.utils.ConfigSection.getKeys(boolean)"
because the return value of "cn.nukkit.utils.Config.getSection(String)" is null
at frost.rpg.RPGClasses.loadPlayerData(RPGClasses.java:229)


This happens in loadPlayerData, when the plugin tries to read the player data section. It seems that players.yml does not contain the required section (for example players: {}), so getSection(...) returns null.


Could you please check if this section should be generated by default, or let me know what the correct structure of players.yml should be? 🙏


Thanks for your work and for sharing this resource with the community 🚀
 
Hi 👋, thanks a lot for your plugin RPGClasses, it’s really complete and I love the idea of having an RPG system in Nukkit.


However, I ran into an error when starting the server:



Caused by: java.lang.NullPointerException:
Cannot invoke "cn.nukkit.utils.ConfigSection.getKeys(boolean)"
because the return value of "cn.nukkit.utils.Config.getSection(String)" is null
at frost.rpg.RPGClasses.loadPlayerData(RPGClasses.java:229)


This happens in loadPlayerData, when the plugin tries to read the player data section. It seems that players.yml does not contain the required section (for example players: {}), so getSection(...) returns null.


Could you please check if this section should be generated by default, or let me know what the correct structure of players.yml should be? 🙏


Thanks for your work and for sharing this resource with the community 🚀
I will try to edit this
 
Top