RadioHasNoFuture Posted September 29, 2012 Share 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? Link to comment Share on other sites More sharing options...
phoenix987 Posted September 30, 2012 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now