Changed "motd" to "serverlist-motd" due to a clash with classic.

This commit is contained in:
Alex231 2020-11-15 07:33:38 +00:00
parent 35ba3c3d44
commit cd919f4a76
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
name: gg.codie.mineonline.plugin.bukkit.MineOnlineBroadcast
version: 1.0.10
version: 1.0.11
description: Lists a server on mineonline.codie.gg/servers
author: codieradical
authors: [Codie]

View File

@ -175,7 +175,7 @@ public class MineOnlineBroadcastPlugin extends JavaPlugin {
String md5 = propertiesFile.getProperty("version-md5", "");
boolean whitelisted = propertiesFile.getProperty("whitelist", "false").equals("true");
boolean dontListPlayers = propertiesFile.getProperty("dont-list-players", "false").equals("true");
String motd = propertiesFile.getProperty("motd", null);
String motd = propertiesFile.getProperty("serverlist-motd", null);
String[] playerNames = Arrays.stream(getServer().getOnlinePlayers()).map(Player::getName).collect(Collectors.toList()).toArray(new String[users]);