From 160b54c96517193e1a4ad088a233e2553e460b1f Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Wed, 30 Mar 2011 14:55:42 +0100 Subject: [PATCH] Made Server a singleton --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 2b7f5e9ee2..1c6c7b9682 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -50,6 +50,8 @@ public final class CraftServer implements Server { this.server = server; this.serverVersion = CraftServer.class.getPackage().getImplementationVersion(); + Bukkit.setServer(this); + Logger.getLogger("Minecraft").log(Level.INFO, "This server is running " + getName() + " version " + getVersion()); }