mirror of
https://github.com/unmojang/OnlineModeFix.git
synced 2025-09-16 02:44:48 -04:00
"serverlist-ip" and "serverlist-port" options
This commit is contained in:
parent
2457525c4b
commit
5b0df58d3f
@ -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]
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user