diff --git a/res/plugin.yml b/res/plugin.yml index 137e9f2..cf5f4f1 100644 --- a/res/plugin.yml +++ b/res/plugin.yml @@ -1,5 +1,5 @@ name: MineOnlineBroadcast -version: 1.0.5 +version: 1.0.6 description: Lists a server on mineonline.codie.gg/servers author: codieradical authors: [Codie] diff --git a/src/MineOnlineBroadcast.java b/src/MineOnlineBroadcast.java index e34f930..68e2942 100644 --- a/src/MineOnlineBroadcast.java +++ b/src/MineOnlineBroadcast.java @@ -119,8 +119,8 @@ public class MineOnlineBroadcast extends JavaPlugin { Properties propertiesFile = new Properties(); propertiesFile.load(new FileInputStream(new File("server.properties"))); - String ip = propertiesFile.getProperty("server-ip", null); - String port = propertiesFile.getProperty("server-port", "25565"); + String ip = propertiesFile.getProperty("serverlist-ip", propertiesFile.getProperty("server-ip", propertiesFile.getProperty("ip", null))); + String port = propertiesFile.getProperty("serverlist-port", propertiesFile.getProperty("server-port", propertiesFile.getProperty("port", "25565"))); int users = getServer().getOnlinePlayers().length; String maxUsers = propertiesFile.getProperty("max-players", "20"); String name = propertiesFile.getProperty("server-name", "Minecraft Server");