diff --git a/src/main/java/com/kryeit/votifier/Votifier.java b/src/main/java/com/kryeit/votifier/Votifier.java index 07c3f64..e288206 100644 --- a/src/main/java/com/kryeit/votifier/Votifier.java +++ b/src/main/java/com/kryeit/votifier/Votifier.java @@ -84,17 +84,7 @@ public void onInitializeServer() { File rsaDirectory = new File("mods/votifier/rsa"); // Replace to remove a bug with Windows paths - SmilingDevil String listenerDirectory = "mods/votifier/listeners"; - - /* - * Use IP address from server.properties as a default for - * configurations. Do not use InetAddress.getLocalHost() as it most - * likely will return the main server address instead of the address - * assigned to the server. - */ - String hostAddr = MinecraftServerSupplier.getServer().getServerIp(); - if (hostAddr == null || hostAddr.length() == 0) - hostAddr = "0.0.0.0"; - + /* * Create RSA directory and keys if it does not exist; otherwise, read * keys. diff --git a/src/main/resources/config.json b/src/main/resources/config.json index dc3addf..4765387 100644 --- a/src/main/resources/config.json +++ b/src/main/resources/config.json @@ -1,6 +1,6 @@ { "host": "0.0.0.0", - "port": 8192, + "port": "8192", "debug": false, "listener-folder": "listeners" } \ No newline at end of file