summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Adams <dinnerbone@dinnerbone.com>2012-01-15 17:44:15 +0000
committerNathan Adams <dinnerbone@dinnerbone.com>2012-01-15 17:44:15 +0000
commit95a72d1c59df87782da01f1d83333b5d187dc800 (patch)
tree706f66c9f392bc1af1f56660e777d0f6fcd81baf
parent65f30fd99d2a31d5980eafda3ac70028208f08af (diff)
downloadcraftbukkit-95a72d1c59df87782da01f1d83333b5d187dc800.tar
craftbukkit-95a72d1c59df87782da01f1d83333b5d187dc800.tar.gz
craftbukkit-95a72d1c59df87782da01f1d83333b5d187dc800.tar.lz
craftbukkit-95a72d1c59df87782da01f1d83333b5d187dc800.tar.xz
craftbukkit-95a72d1c59df87782da01f1d83333b5d187dc800.zip
Implemented World.getWorldType
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 4504c250..41090e77 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/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());
+ }
}