mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-10 09:21:31 +01:00
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:
parent
930433b64b
commit
6aa7869b17
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user