Change the jail stick event to lowest priority, so it gets called first.
This commit is contained in:
		@@ -212,7 +212,7 @@ public class PlayerListener implements Listener {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @EventHandler(ignoreCancelled=true)
 | 
					    @EventHandler(priority = EventPriority.LOWEST, ignoreCancelled=true)
 | 
				
			||||||
    public void jailStickHandling(EntityDamageByEntityEvent event) {
 | 
					    public void jailStickHandling(EntityDamageByEntityEvent event) {
 | 
				
			||||||
        if(pl.getConfig().getBoolean(Settings.JAILSTICKENABLED.getPath())) {
 | 
					        if(pl.getConfig().getBoolean(Settings.JAILSTICKENABLED.getPath())) {
 | 
				
			||||||
            //If the damager and the entity getting damage is not a player,
 | 
					            //If the damager and the entity getting damage is not a player,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user