kangarko / Foundation

Foundation™ helps you create highly customized Minecraft plugins (based on Spigot/Paper API) that support multiple MC versions.
https://mineacademy.org
305 stars 63 forks source link

Menu setting player meta data #301

Closed WhipMeGrandmaa closed 1 month ago

WhipMeGrandmaa commented 1 month ago

In the menu class, when it is displayed it sets the entire menu to the player's meta data. The issue is, if for example you want to make a leaderboard and you just reference a massive object in the buttons, it will still get put into the player's meta data and it can cause ram issues on the server.

kangarko commented 1 month ago

That is by design, then you please need to try adjusting your menu fields so that they store references and not the entire leaderboard.