Fix lore messages not displaying correctly under certain circumstances
This commit is contained in:
parent
41128cbc9d
commit
cf724272dd
@ -146,7 +146,7 @@ public class ServerNpcPage extends ShopPageBase<ServerManager, ServerNpcShop> im
|
||||
}
|
||||
else
|
||||
{
|
||||
if (isInProgress(serverInfo) && serverInfo.CurrentPlayers >= serverInfo.MaxPlayers)
|
||||
if (isInProgress(serverInfo))
|
||||
{
|
||||
if (serverInfo.MOTD.contains("Restarting"))
|
||||
{
|
||||
@ -184,7 +184,16 @@ public class ServerNpcPage extends ShopPageBase<ServerManager, ServerNpcShop> im
|
||||
else
|
||||
{
|
||||
if (free || ownsUltraPackage)
|
||||
lore.add(MESSAGE_JOIN);
|
||||
{
|
||||
if (serverInfo.CurrentPlayers >= serverInfo.MaxPlayers && !ownsUltraPackage)
|
||||
{
|
||||
lore.add(MESSAGE_FULL_GET_ULTRA);
|
||||
}
|
||||
else
|
||||
{
|
||||
lore.add(MESSAGE_JOIN);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lore.add(MESSAGE_REQUIRES_PREMIUM);
|
||||
|
Loading…
Reference in New Issue
Block a user