From 5fff84c5a9d87ccd050be2a68b299588be766cbe Mon Sep 17 00:00:00 2001 From: Rigby Date: Sat, 23 Apr 2011 17:57:25 +0100 Subject: [PATCH] Added the ability to retrieve a world's Seed. --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 357476ed3d..96895634d4 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -594,4 +594,8 @@ public class CraftWorld implements World { public void setThunderDuration(int duration) { world.worldData.b(duration); } + + public long getSeed() { + return world.worldData.b(); + } }