changed event priorities

This commit is contained in:
hyperdefined
2022-10-05 20:46:19 -04:00
parent 1cef74311e
commit bc8496fad4
10 changed files with 10 additions and 10 deletions

View File

@@ -42,7 +42,7 @@ public class BlocksMined implements Listener {
this.toolStats = toolStats;
}
@EventHandler (priority = EventPriority.LOWEST)
@EventHandler (priority = EventPriority.HIGHEST)
public void onBreak(BlockBreakEvent event) {
if (event.isCancelled()) {
return;

View File

@@ -44,7 +44,7 @@ public class ChunkPopulate implements Listener {
this.toolStats = toolStats;
}
@EventHandler(priority = EventPriority.LOWEST)
@EventHandler(priority = EventPriority.HIGHEST)
public void onPopulate(ChunkPopulateEvent event) {
if (event.getChunk().getWorld().getEnvironment() != World.Environment.THE_END) {
return;

View File

@@ -43,7 +43,7 @@ public class CraftItem implements Listener {
this.toolStats = toolStats;
}
@EventHandler(priority = EventPriority.LOWEST)
@EventHandler(priority = EventPriority.HIGHEST)
public void onCraft(CraftItemEvent event) {
if (event.isCancelled()) {
return;

View File

@@ -46,7 +46,7 @@ public class EntityDamage implements Listener {
this.toolStats = toolStats;
}
@EventHandler(priority = EventPriority.LOWEST)
@EventHandler(priority = EventPriority.HIGHEST)
public void onDamage(EntityDamageByEntityEvent event) {
if (event.isCancelled()) {
return;

View File

@@ -38,7 +38,7 @@ public class EntityDeath implements Listener {
this.toolStats = toolStats;
}
@EventHandler(priority = EventPriority.LOWEST)
@EventHandler(priority = EventPriority.HIGHEST)
public void onDeath(EntityDeathEvent event) {
LivingEntity livingEntity = event.getEntity();
if (livingEntity instanceof Player) {

View File

@@ -50,7 +50,7 @@ public class GenerateLoot implements Listener {
this.toolStats = toolStats;
}
@EventHandler(priority = EventPriority.LOWEST)
@EventHandler(priority = EventPriority.HIGHEST)
public void onGenerateLoot(LootGenerateEvent event) {
InventoryHolder inventoryHolder = event.getInventoryHolder();
if (inventoryHolder == null) {

View File

@@ -43,7 +43,7 @@ public class PickupItem implements Listener {
this.toolStats = toolStats;
}
@EventHandler(priority = EventPriority.LOWEST)
@EventHandler(priority = EventPriority.HIGHEST)
public void onPickup(EntityPickupItemEvent event) {
if (event.isCancelled()) {
return;

View File

@@ -45,7 +45,7 @@ public class PlayerFish implements Listener {
this.toolStats = toolStats;
}
@EventHandler(priority = EventPriority.LOWEST)
@EventHandler(priority = EventPriority.HIGHEST)
public void onFish(PlayerFishEvent event) {
if (event.isCancelled()) {
return;

View File

@@ -43,7 +43,7 @@ public class SheepShear implements Listener {
this.toolStats = toolStats;
}
@EventHandler(priority = EventPriority.LOWEST)
@EventHandler(priority = EventPriority.HIGHEST)
public void onShear(PlayerInteractEntityEvent event) {
if (event.isCancelled()) {
return;

View File

@@ -48,7 +48,7 @@ public class VillagerTrade implements Listener {
this.toolStats = toolStats;
}
@EventHandler(priority = EventPriority.LOWEST)
@EventHandler(priority = EventPriority.HIGHEST)
public void onTrade(InventoryClickEvent event) {
if (event.isCancelled() || event.getCurrentItem() == null) {
return;