Problem
If a player has a large number of experience levels beyond the threshold of the number of bottles their inventory can hold, the plugin does not function as expected.
Solution
Add a check to see how many free spots are left in the player's inventory and only withdraw the correct number of bottles that can fill their inventory.
Problem
If a player has a large number of experience levels beyond the threshold of the number of bottles their inventory can hold, the plugin does not function as expected.
Solution
Add a check to see how many free spots are left in the player's inventory and only withdraw the correct number of bottles that can fill their inventory.