@Shin1gamiX how can i check if the click on this block? I know how to do a playerinteractevent but not how to check what block they clicked on...
javadocs are your best friend https://hub.spigotmc.org/javadocs/b...er/PlayerInteractEvent.html#getClickedBlock--
Code (Java): @EventHandler public void onInteract(PlayerInteractEvent e) { if(e.getAction() == Action.RIGHT_CLICK_BLOCK) { if(e.getBlock().getType() == Material.SWEET_BERRY_BUSH) e.setCancelled(true); } } Don't forget! Your class with this method must be implementing `Listener` using: Code (Java): implements Listener Also don't forget: Register your Listener-Class in your main using: Code (Java): Bukkit.getPluginManager().registerEvents(new YourClass(), this);