[FIX] Drink disappearing but not working if in off hand
In MC versions 1.11 - 1.16.x, if a player tried to drink an item from their off hand slot, it would disappear but wouldn't trigger the gamble listener. This bug is now fixed. If a player tries to drink a GambleBar item from their offhand slot, the event will now be canceled, and a message can be sent to them, telling them to switch the item to their main hand. If you want this message to be sent, add the following lines into your messages.yml file.
Code (YAML):
# Sent to the user if they try to drink with the item in their offhand noOffHand: "&c&lSorry, &7you need to move this item to your main hand!"