mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Made Server a singleton
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
ba7e83927e
commit
16a666c20e
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue