So what im trying to figre out is how to check if the placed block is a certain block. public class Main extends JavaPlugin implements Listener, { public void onEnable() { Bukkit.getServer().getPluginManager().registerEvents(this,this); } public void onDisable() { } @EventHandler public void onBlockPlace(BlockPlaceEvent event) { So i want to next check if the placed block is a certain kind of block can someone help?
Code (Text): if(event.getBlock().getType() == Material.MY_TYPE) { // do stuff } https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
Umm its not working... if(event.getBlock().getType() == micdoodle8.mods.galacticraft.core.blocks.GCCoreBlockAluminumWire
You didn't mention you were using mods. I'm not sure if this is supported on this forum, but even if it is I doubt there will be many people who can help you.
um. I don't think mods and spigot go hand and hand lol. Mods are for forge Im sure and Plugins are for spigot
I know that im trying to find a website that will help me ahahah can you direct me a website that could help me?