diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-01-15 17:44:15 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-01-15 17:44:15 +0000 |
commit | 95a72d1c59df87782da01f1d83333b5d187dc800 (patch) | |
tree | 706f66c9f392bc1af1f56660e777d0f6fcd81baf | |
parent | 65f30fd99d2a31d5980eafda3ac70028208f08af (diff) | |
download | craftbukkit-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.java | 4 |
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()); + } } |