- Fixed a bug where the server's MOTD was incorrect
  Hard-Coded the MOTD into the server status manager, forcing it to be passed on to the redis database
This commit is contained in:
Daniel Waggner 2021-06-04 13:34:54 -07:00
parent 25bfc9160e
commit e04ecbd9e9
6 changed files with 6 additions and 5 deletions

View File

@ -317,7 +317,7 @@ public class HubManager extends MiniClientPlugin<HubClient>
} }
else if (UtilServer.isTestServer()) else if (UtilServer.isTestServer())
{ {
event.setMotd(C.cGreen + "Private Mineplex Test Server"); event.setMotd(C.cGreen + "Private SMP Server");
} }
} }

View File

@ -72,7 +72,7 @@ public class MinecraftServer
{ {
_name = name; _name = name;
_group = group; _group = group;
_motd = motd; _motd = "\\u00A76" + "\\u00A7l" + "Private SMP Server " + "\\u00A77" + "IDRK ¯|_(ツ)_|¯ " + "\\u00A72" + "\\u00A7l" + "ONLINE" + "\n" + "\\u00A74" + "\\u00A7l" + "|| Execute Order 66 ||";
_playerCount = playerCount; _playerCount = playerCount;
_maxPlayerCount = maxPlayerCount; _maxPlayerCount = maxPlayerCount;
_tps = tps; _tps = tps;

View File

@ -981,6 +981,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
@EventHandler @EventHandler
public void motdPing(ServerListPingEvent event) public void motdPing(ServerListPingEvent event)
{ {
event.setMotd(C.cGoldB + "Private SMP Server " + C.cGray + "IDRK ¯|_(ツ)_|¯ " + C.cDGreenB + "ONLINE" + "\n" + C.cDRedB + "|| Execute Order 66 ||");
event.setMaxPlayers(_serverConfig.MaxPlayers); event.setMaxPlayers(_serverConfig.MaxPlayers);
if (UtilServer.isTestServer(false)) if (UtilServer.isTestServer(false))
@ -1225,18 +1226,18 @@ public class ArcadeManager extends MiniPlugin implements IRelation
} }
else else
{ {
event.disallow(Result.KICK_OTHER, C.Bold + "Server has reached max capacity for gameplay purposes."); event.disallow(Result.KICK_OTHER, C.Bold + "Server Full!");
} }
} }
else else
{ {
if (joinable == GameJoinStatus.RANKS_ONLY) if (joinable == GameJoinStatus.RANKS_ONLY)
{ {
event.disallow(Result.KICK_OTHER, C.Bold + "Server has reached max capacity for gameplay purposes."); event.disallow(Result.KICK_OTHER, C.Bold + "Server Full!");
} }
else else
{ {
event.disallow(Result.KICK_OTHER, C.Bold + "Server Full > Purchase Ultra at www.mineplex.com/shop"); event.disallow(Result.KICK_OTHER, C.Bold + "Server Full!");
} }
} }
} }