diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 7e66df390e..f81c1f6376 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -75,6 +75,7 @@ import org.bukkit.Effect; import org.bukkit.FluidCollisionMode; import org.bukkit.GameRule; import org.bukkit.Location; +import org.bukkit.NamespacedKey; import org.bukkit.Particle; import org.bukkit.Raid; import org.bukkit.Sound; @@ -581,6 +582,11 @@ public class CraftWorld extends CraftRegionAccessor implements World { return world.uuid; } + @Override + public NamespacedKey getKey() { + return CraftNamespacedKey.fromMinecraft(world.dimension().location()); + } + @Override public String toString() { return "CraftWorld{name=" + getName() + '}';