diff --git a/src/main/java/world/bentobox/bentobox/listeners/teleports/PlayerTeleportListener.java b/src/main/java/world/bentobox/bentobox/listeners/teleports/PlayerTeleportListener.java index b461e942e..c764d0012 100644 --- a/src/main/java/world/bentobox/bentobox/listeners/teleports/PlayerTeleportListener.java +++ b/src/main/java/world/bentobox/bentobox/listeners/teleports/PlayerTeleportListener.java @@ -78,7 +78,13 @@ public void onPlayerPortalEvent(PlayerPortalEvent event) { case NETHER_PORTAL -> this.portalProcess(event, World.Environment.NETHER); case END_PORTAL, END_GATEWAY -> this.portalProcess(event, World.Environment.THE_END); - default -> throw new IllegalArgumentException("Unexpected value: " + event.getCause()); + default -> { // Do nothing, ignore + + } + /* + * Other potential reasons: CHORUS_FRUIT , COMMAND, DISMOUNT, + * ENDER_PEARL, EXIT_BED, PLUGIN, SPECTATE , UNKNOWN + */ } }