Skip to content

Commit

Permalink
change priority of some denial events to LOWEST
Browse files Browse the repository at this point in the history
Thanks to OliPulse in IRC, we discovered some events at the wrong
priority in GP.
  • Loading branch information
RoboMWM committed Feb 2, 2020
1 parent 25069ad commit 8760ad6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -171,7 +171,7 @@ public void onSignChanged(SignChangeEvent event)
}

//when a player places multiple blocks...
@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
public void onBlocksPlace(BlockMultiPlaceEvent placeEvent)
{
Player player = placeEvent.getPlayer();
Expand Down Expand Up @@ -202,7 +202,7 @@ private boolean doesAllowFireProximityInWorld(World world) {

//when a player places a block...
@SuppressWarnings("null")
@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGH)
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
public void onBlockPlace(BlockPlaceEvent placeEvent)
{
Player player = placeEvent.getPlayer();
Expand Down
Expand Up @@ -1306,7 +1306,7 @@ else if(damageSource instanceof Firework) {
}

//when a splash potion effects one or more entities...
@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
public void onPotionSplash (PotionSplashEvent event)
{
ThrownPotion potion = event.getPotion();
Expand Down

0 comments on commit 8760ad6

Please sign in to comment.