Bug Fix
- 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:
parent
25bfc9160e
commit
e04ecbd9e9
@ -317,7 +317,7 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
||||
}
|
||||
else if (UtilServer.isTestServer())
|
||||
{
|
||||
event.setMotd(C.cGreen + "Private Mineplex Test Server");
|
||||
event.setMotd(C.cGreen + "Private SMP Server");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ public class MinecraftServer
|
||||
{
|
||||
_name = name;
|
||||
_group = group;
|
||||
_motd = motd;
|
||||
_motd = "\\u00A76" + "\\u00A7l" + "Private SMP Server " + "\\u00A77" + "IDRK ¯|_(ツ)_|¯ " + "\\u00A72" + "\\u00A7l" + "ONLINE" + "\n" + "\\u00A74" + "\\u00A7l" + "|| Execute Order 66 ||";
|
||||
_playerCount = playerCount;
|
||||
_maxPlayerCount = maxPlayerCount;
|
||||
_tps = tps;
|
||||
|
Binary file not shown.
@ -981,6 +981,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
@EventHandler
|
||||
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);
|
||||
|
||||
if (UtilServer.isTestServer(false))
|
||||
@ -1225,18 +1226,18 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
}
|
||||
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
|
||||
{
|
||||
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
|
||||
{
|
||||
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!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user