public void noBlocks(BlockBreakEvent event){ Player player = event.getPlayer(); if(player.isOp){ //do nothing }else{ event.setCancelled(true); } Done.
Worldguard is a plugin *cough* - has what you want, so use it. And why not just use permissions? EVERY permission plugin has some kind of block permissions.
public class noBlocks extends JavaPlugin implements Listener { @EventHandler public void noBlockBreak(BlockBreakEvent event){ if(!(event.getPlayer().isOp())){ event.setCancelled(true); } } Easy ... You want me to make a jar of it ?
Fucking use worldgaurd its a fucking plugin will prevent players from building...... You want it as a plugin? WorldGaurd is your friend
[quote uid=90684934 name="nbkburns" post=1719766]i want it so only ops can break and place blocks and normal players cant break or place anything[/quote] <Edit by Moderator: Redacted mediafire url> You can mark it as "FILLED" now EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Nbkburns, take time to learn how plugins work and familiarize yourself with a decent amount of them (especially the top rated ones...) I'm not going to take any of your posts seriously until you do, the request forum is NOT "I'm lazy give me things that will do x", it is for intelligent requests that have been researched prior to the post. Thank you.