From ef3aaa62f37f33ca1342ab80ac3b61b04b1ab5fb Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 19 Jun 2011 06:13:52 -0400 Subject: [PATCH] Added getOnlineMode() for the Server. Thanks Rigby! By: EvilSeph --- .../src/main/java/org/bukkit/craftbukkit/CraftServer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java index af90ed4d60..1da14352f2 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/paper-server/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; + } }