From e3c83ba119a4ee7bf7c970156b13b73d1a7778f8 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 15 Jan 2012 17:44:15 +0000 Subject: [PATCH] Implemented World.getWorldType By: Nathan Adams --- .../src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 4 ++++ 1 file changed, 4 insertions(+) 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 4504c25026..41090e7778 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -943,4 +943,8 @@ public class CraftWorld implements World { return result; } + + public org.bukkit.WorldType getWorldType() { + return org.bukkit.WorldType.getByName(world.getWorldData().getType().name()); + } }