Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by Fliz, Jul 12, 2021.
Is there any way to detect when player filled glass bottle?
I don't think so but you could listen to the PlayerInteractEvent and in your listener check for the following things
- Is a rightclick
- Player is holding an empty bottle in his hand
- Player is looking at a valid source for filling bottles (water and filled cauldrons (I think?))
And Dragon Breath
For stuff like this i use this plugin https://www.spigotmc.org/resources/eventdebug.5940/
Great for seeing what events are fired when you're unsure which events are called for certain things.
ty, i'll try.