So i got this, in a blockplace event. But it doesn't work: Code (Text): Chunk chunk = e.getBlockPlaced().getLocation().getChunk(); for(BlockState entity : chunk.getTileEntities()) { if(entity instanceof PressurePlate) { PressurePlate plate = (PressurePlate)entity; e.setCancelled(true); e.getPlayer().sendMessage("§c§oYou can't build here!");
This forum is for BungeeCord plugin development only. Please ask your question in the Spigot Plugin Development forum: https://www.spigotmc.org/forums/spigot-plugin-development.52/ Additionally, you should provide more information on your problem, like the error message in the console.