GUI Shop

GUI Shop

273k Downloads

Exception thrown when config.yml has too many entries

OortCloud42 opened this issue ยท 3 comments

commented

Currently the plugin throws an exception when too many entries are added to config.yml. It tries to add all of them to the fake inventory, causing an ArrayOutOfBounds exception. This can be easily solved by either checking if there's a correct amount of entries in config.yml or simply ignoring excess entries.

commented

Yes.

commented

Valid Issue. I can add additional out of bounds checks to fix this. Optionally, a user can change the rows/columns of the menu to increase the array max size, but keep in mind, the max items a user could use with max rows/cols (9*6) case would be 54.

commented

Fixed as of 9.0.5