mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 21:27:44 +01:00
Change priority of PlayerPortalEvent in PortalTeleportationListener
https://github.com/BentoBoxWorld/BentoBox/issues/1101
This commit is contained in:
parent
898e310e4f
commit
d972dd10c1
@ -55,7 +55,7 @@ public class PortalTeleportationListener implements Listener {
|
|||||||
* Handles end portals
|
* Handles end portals
|
||||||
* @param e - event
|
* @param e - event
|
||||||
*/
|
*/
|
||||||
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
|
||||||
public boolean onEndIslandPortal(PlayerPortalEvent e) {
|
public boolean onEndIslandPortal(PlayerPortalEvent e) {
|
||||||
if (e.getCause() != TeleportCause.END_PORTAL) {
|
if (e.getCause() != TeleportCause.END_PORTAL) {
|
||||||
return false;
|
return false;
|
||||||
@ -142,10 +142,10 @@ public class PortalTeleportationListener implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles nether portals
|
* Handles nether portals.
|
||||||
* @param e - event
|
* @param e - event
|
||||||
*/
|
*/
|
||||||
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) // Use HIGH to allow Multiverse first shot
|
||||||
public boolean onNetherPortal(PlayerPortalEvent e) {
|
public boolean onNetherPortal(PlayerPortalEvent e) {
|
||||||
if (e.getCause() != TeleportCause.NETHER_PORTAL) {
|
if (e.getCause() != TeleportCause.NETHER_PORTAL) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user