SteamWar/SpigotCore
Archiviert
13
0

Merge pull request 'Add Nodename to Startup' (#109) from node_name into master

Reviewed-on: #109
Reviewed-by: YoyoNow <jwsteam@nidido.de>
Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Lixfel 2021-09-27 17:12:13 +02:00
Commit bc3864224d

Datei anzeigen

@ -29,6 +29,11 @@ import de.steamwar.sql.SQL;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.logging.Level;
public class Core extends JavaPlugin{
@ -67,6 +72,11 @@ public class Core extends JavaPlugin{
getServer().getMessenger().registerOutgoingPluginChannel(this, "sw:bridge");
ChunkListener.init();
AuthlibInjector.inject();
try {
Bukkit.getLogger().log(Level.INFO, "Running on: " + new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec("hostname").getInputStream())).readLine());
} catch (IOException e) {
throw new SecurityException("Could not load Hostname", e);
}
}
@Override