Skip to content

[Bug]: Console spam when teleporting to a home in a deleted world #1406

Description

@jakmar06

Bug Description

When a world is deleted from the server, homes previously created in that world remain saved.

If a player tries to teleport to one of these homes, EternalCore repeatedly throws errors and causes console spam instead of safely rejecting the teleportation.

Steps to Reproduce

  1. Create a home in any world.
  2. Delete that world from the server.
  3. Try to teleport to the saved home using /home

Expected Behavior

EternalCore should detect that the world no longer exists and:

  • cancel the teleportation,
  • display an error message to the player,
  • optionally remove the invalid home,
  • avoid printing repeated errors in the console.

Screenshots/Video

No response

Server Software

Other (please specify in logs)

Minecraft Version

26.2 (Advanced slime paper)

Plugin Version

2.0.1-SNAPSHOT+83

Logs / Stack Trace

[18:18:20 WARN]: [EternalCore] Task #104 for EternalCore v2.0.1-SNAPSHOT+83 generated an exception

java.lang.IllegalStateException: World is not defined

        at EternalCore v2.0.1-SNAPSHOT+83.jar//com.eternalcode.core.libs.com.eternalcode.commons.bukkit.position.PositionAdapter.convert(PositionAdapter.java:29) ~[?:?]

        at EternalCore v2.0.1-SNAPSHOT+83.jar//com.eternalcode.core.feature.teleport.TeleportTask.completeTeleport(TeleportTask.java:93) ~[?:?]

        at EternalCore v2.0.1-SNAPSHOT+83.jar//com.eternalcode.core.feature.teleport.TeleportTask.run(TeleportTask.java:88) ~[?:?]

        at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78) ~[aspaper-26.2.jar:26.2-17268-a461b92]

        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:474) ~[aspaper-26.2.jar:26.2-17268-a461b92]

        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1768) ~[aspaper-26.2.jar:26.2-17268-a461b92]

        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1621) ~[aspaper-26.2.jar:26.2-17268-a461b92]

        at net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:404) ~[aspaper-26.2.jar:26.2-17268-a461b92]

        at net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1679) ~[aspaper-26.2.jar:26.2-17268-a461b92]

        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1349) ~[aspaper-26.2.jar:26.2-17268-a461b92]

        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:303) ~[aspaper-26.2.jar:26.2-17268-a461b92]

        at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?]

[18:18:21 WARN]: [EternalCore] Task #104 for EternalCore v2.0.1-SNAPSHOT+83 generated an exception

java.lang.IllegalStateException: World is not defined

        at EternalCore v2.0.1-SNAPSHOT+83.jar//com.eternalcode.core.libs.com.eternalcode.commons.bukkit.position.PositionAdapter.convert(PositionAdapter.java:29) ~[?:?]

        at EternalCore v2.0.1-SNAPSHOT+83.jar//com.eternalcode.core.feature.teleport.TeleportTask.completeTeleport(TeleportTask.java:93) ~[?:?]

        at EternalCore v2.0.1-SNAPSHOT+83.jar//com.eternalcode.core.feature.teleport.TeleportTask.run(TeleportTask.java:88) ~[?:?]

        at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78) ~[aspaper-26.2.jar:26.2-17268-a461b92]

        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:474) ~[aspaper-26.2.jar:26.2-17268-a461b92]

        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1768) ~[aspaper-26.2.jar:26.2-17268-a461b92]

        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1621) ~[aspaper-26.2.jar:26.2-17268-a461b92]

        at net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:404) ~[aspaper-26.2.jar:26.2-17268-a461b92]

        at net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1679) ~[aspaper-26.2.jar:26.2-17268-a461b92]

        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1349) ~[aspaper-26.2.jar:26.2-17268-a461b92]

        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:303) ~[aspaper-26.2.jar:26.2-17268-a461b92]

        at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions