Stopping Double eating

Discussion in 'Spigot Plugin Help' started by Technerder, May 6, 2017.

  1. any ideas on how to stop double eating,

    how it works: after eating an item such as steak, if holding the item after you finish eating the food, it will take another and insta double eat it.
     
  2. On eat event, add the player to a Set. Make a runnable, and x ticks after the eat event, remove the player from the Set. If the player is in the Set when the eat event is fired, cancel the eat event.