From 89a524678a1b219cf6d91711d7f9b2a56e621cf8 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Sun, 19 Jun 2011 06:13:52 -0400 Subject: Added getOnlineMode() for the Server. Thanks Rigby! --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index af90ed4d..1da14352 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -565,4 +565,8 @@ public final class CraftServer implements Server { configuration.setProperty("settings.spawn-radius", value); configuration.save(); } + + public boolean getOnlineMode() { + return this.console.onlineMode; + } } -- cgit v1.2.3