SteamWar/SpigotCore
Archiviert
13
0

Changing Things around

Dieser Commit ist enthalten in:
Chaoscaot 2021-06-26 11:23:22 +02:00
Ursprung cbeb221538
Commit cf961c88f5

Datei anzeigen

@ -57,11 +57,6 @@ public class Core extends JavaPlugin{
@Override @Override
public void onLoad() { public void onLoad() {
try {
Bukkit.getLogger().log(Level.INFO, "Node Name: " + new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec("hostname").getInputStream())).readLine());
} catch (IOException e) {
e.printStackTrace();
}
setInstance(this); setInstance(this);
} }
@ -71,11 +66,16 @@ public class Core extends JavaPlugin{
Bukkit.getPluginManager().registerEvents(new ChattingEvent(), this); Bukkit.getPluginManager().registerEvents(new ChattingEvent(), this);
Bukkit.getPluginManager().registerEvents(new WorldLoadEvent(), this); Bukkit.getPluginManager().registerEvents(new WorldLoadEvent(), this);
ChunkListener.init(); ChunkListener.init();
if(version >= 12) if (version >= 12)
ErrorLogger.init(); ErrorLogger.init();
getServer().getMessenger().registerIncomingPluginChannel(this, "sw:bridge", new BungeeReceiver()); getServer().getMessenger().registerIncomingPluginChannel(this, "sw:bridge", new BungeeReceiver());
getServer().getMessenger().registerOutgoingPluginChannel(this, "sw:bridge"); getServer().getMessenger().registerOutgoingPluginChannel(this, "sw:bridge");
AuthlibInjector.inject(); AuthlibInjector.inject();
try {
Bukkit.getLogger().log(Level.INFO, "Running on: " + new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec("hostname").getInputStream())).readLine());
} catch (IOException e) {
e.printStackTrace();
}
} }
@Override @Override