Add Nodename to Startup #109
@ -57,11 +57,6 @@ public class Core extends JavaPlugin{
|
||||
|
||||
@Override
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@ -71,11 +66,16 @@ public class Core extends JavaPlugin{
|
||||
Bukkit.getPluginManager().registerEvents(new ChattingEvent(), this);
|
||||
Bukkit.getPluginManager().registerEvents(new WorldLoadEvent(), this);
|
||||
ChunkListener.init();
|
||||
if(version >= 12)
|
||||
if (version >= 12)
|
||||
ErrorLogger.init();
|
||||
getServer().getMessenger().registerIncomingPluginChannel(this, "sw:bridge", new BungeeReceiver());
|
||||
getServer().getMessenger().registerOutgoingPluginChannel(this, "sw:bridge");
|
||||
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();
|
||||
Lixfel
hat
Chrmm! Ordentliches Error-Handling bitte! Chrmm! Ordentliches Error-Handling bitte!
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
Bitte eher im onEnable machen (da Zugriff auf die Bukkit-API). Und ggf. eher Running on ... nennen.