mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-03 18:43:43 +01:00 
			
		
		
		
	Monitor and ignoreCancelledEvents onBlockPlace
This commit is contained in:
		@@ -56,9 +56,11 @@ public class mcBlockListener implements Listener
 | 
			
		||||
        this.plugin = plugin;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    @EventHandler
 | 
			
		||||
    @EventHandler(priority = EventPriority.MONITOR)
 | 
			
		||||
    public void onBlockPlace(BlockPlaceEvent event) 
 | 
			
		||||
    {
 | 
			
		||||
    	if(event.isCancelled()) return;
 | 
			
		||||
 | 
			
		||||
    	//Setup some basic vars
 | 
			
		||||
    	Block block;
 | 
			
		||||
    	Player player = event.getPlayer();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user