Added new --noconsole command argument, thanks to mkurzeja for the idea

This commit is contained in:
Nathan Adams
2011-11-05 20:14:26 +00:00
parent 13561bca9c
commit 589f66bd1b
3 changed files with 20 additions and 1 deletions

View File

@@ -105,6 +105,10 @@ public final class CraftServer implements Server {
this.serverVersion = CraftServer.class.getPackage().getImplementationVersion();
Bukkit.setServer(this);
if (!Main.useConsole) {
getLogger().info("Console input is disabled due to --noconsole command argument");
}
configuration = YamlConfiguration.loadConfiguration(getConfigFile());
configuration.options().copyDefaults(true);