mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 10:20:53 +01:00
Made Server a singleton
This commit is contained in:
parent
c16ba1f940
commit
160b54c965
@ -50,6 +50,8 @@ public final class CraftServer implements Server {
|
|||||||
this.server = server;
|
this.server = server;
|
||||||
this.serverVersion = CraftServer.class.getPackage().getImplementationVersion();
|
this.serverVersion = CraftServer.class.getPackage().getImplementationVersion();
|
||||||
|
|
||||||
|
Bukkit.setServer(this);
|
||||||
|
|
||||||
Logger.getLogger("Minecraft").log(Level.INFO, "This server is running " + getName() + " version " + getVersion());
|
Logger.getLogger("Minecraft").log(Level.INFO, "This server is running " + getName() + " version " + getVersion());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user