RadioHasNoFuture Posted September 29, 2012 Posted September 29, 2012 ok so this is what im trying to do: player places a block plugin checks block id if block id matchesa nuke, it makes a player sent a message how do i do this? Quote
phoenix987 Posted September 30, 2012 Posted September 30, 2012 You need to listen to BlockPlaceEvent. If you aren't familiar with event listeners, I recommend reading the bukkit wiki article on them here. You can also use my plugin MobHostility (code on github, apologies for the lack of comments) as a reference. I would set up the plugin to use a config file for the nuke block ID, as that can vary between tekkit and non-tekkit servers. The wiki article on those can be found here. Finally, the bukkit documentation and javadocs are very thorough. I highly recommend sifting through those for more information. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.