Thanks so much! Solved! btw its event.getWhoClicked()
You can use: Player player = event.getPlayer(); Block block = player.getTargetBlock(null, 50); You can change the 50 to whatever range you need.
So I want to make a GUI which players can click on, but you can put stuff in there. Even after replacing all empty slots with glass, players can...
So I have 2 items, a piece of cobblestone and a piece of stone. I want to create a recipe so that I can smelt the stone into cobblestone but with...
So I want to make a plugin that can teleport you to a specific biome in 1.16.3. I have searched for some, but the ones I found were either...
So how could I code that? Could you give me an example? Thanks
So I want to pick an item from a list in a text file, but I'm not sure how to do that. Could someone please help me? Thanks!
So would I be able to create a plugin for that?
I want to make a plugin where it shows a vignette of different intensity when the player's health is low. The red vignette is just like the world...
Separate names with a comma.