Monitor and ignoreCancelledEvents onBlockPlace

This commit is contained in:
NuclearW 2012-02-05 01:46:39 -05:00
parent dc77d9f434
commit c8ff58bb6c

View File

@ -56,9 +56,11 @@ public class mcBlockListener implements Listener
this.plugin = plugin; this.plugin = plugin;
} }
@EventHandler @EventHandler(priority = EventPriority.MONITOR)
public void onBlockPlace(BlockPlaceEvent event) public void onBlockPlace(BlockPlaceEvent event)
{ {
if(event.isCancelled()) return;
//Setup some basic vars //Setup some basic vars
Block block; Block block;
Player player = event.getPlayer(); Player player = event.getPlayer();