LabAPI
LabAPI copied to clipboard
OnPlayerInteracting Event doesn't Return the Candy used (nor the bag)
As stated in the title. If you use the OnPlayerInteracting Event you won't get the Candy that got used nor the Candy bag. If you use OnPlayerInteracted tho it works and gives you the Candy bag Back as an Item. But lets say the player eats an Candy in position 2 of the Bag and it Had 5 Candys. If you now log the Candy that got used it returns the new candy from the old position where the old Candy was in. I think OnPlayerInteracting would help me to get the candy which the player ate. But sadly it doesn't Return it thats why i think it shouldn't be Like that.
Code example See Image: