Multiverse-NetherPortals

Multiverse-NetherPortals

689k Downloads

Error when bounceback is disabled and no world is linked

nicegamer7 opened this issue ยท 0 comments

commented

If bounceback is disabled and no world is linked, when a user enters a portal they aren't bounced back. So the PlayerPortalEvent is still fired, and since no world is linked we get this error:

java.lang.IllegalArgumentException: Cannot use null location!
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122) ~[patched_1.15.2.jar:git-Paper-300]
	at org.bukkit.event.player.PlayerMoveEvent.validateLocation(PlayerMoveEvent.java:97) ~[patched_1.15.2.jar:git-Paper-300]
	at org.bukkit.event.player.PlayerMoveEvent.setTo(PlayerMoveEvent.java:92) ~[patched_1.15.2.jar:git-Paper-300]
	at com.onarandombox.MultiverseNetherPortals.listeners.MVNPPlayerListener.onPlayerPortal(MVNPPlayerListener.java:95) ~[?:?]
	at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor72.execute(Unknown Source) ~[?:?]
	at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.15.2.jar:git-Paper-300]
	at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.15.2.jar:git-Paper-300]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.15.2.jar:git-Paper-300]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.EntityPlayer.a(EntityPlayer.java:857) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.BlockEnderPortal.a(BlockEnderPortal.java:34) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.IBlockData.a(IBlockData.java:224) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.Entity.checkBlockCollisions(Entity.java:1010) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.Entity.move(Entity.java:725) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.EntityLiving.e(EntityLiving.java:2270) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.EntityHuman.e(EntityHuman.java:1559) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.EntityLiving.movementTick(EntityLiving.java:2637) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.EntityHuman.movementTick(EntityHuman.java:428) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.EntityLiving.tick(EntityLiving.java:2396) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.EntityHuman.tick(EntityHuman.java:165) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.EntityPlayer.playerTick(EntityPlayer.java:442) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.PlayerConnection.tick(PlayerConnection.java:159) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.NetworkManager.a(NetworkManager.java:343) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.ServerConnection.c(ServerConnection.java:140) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1344) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:430) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1173) ~[patched_1.15.2.jar:git-Paper-300]
	at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:962) ~[patched_1.15.2.jar:git-Paper-300]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_241]