Shift priority of EntityPortalEnterEvent to HIGH

https://github.com/BentoBoxWorld/BentoBox/issues/1866

This will allow other plugins running at NORMAL to cancel the event
before BentoBox does something.
This commit is contained in:
tastybento 2021-10-23 16:39:36 -07:00
parent 930433b64b
commit 6aa7869b17
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ public class PortalTeleportationListener implements Listener {
* Fires the event if nether or end is disabled at the system level
* @param e - EntityPortalEnterEvent
*/
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
public void onPlayerPortal(EntityPortalEnterEvent e) {
if (!(e.getEntity() instanceof Player)) {
return;