Fix issues with the lobby menus
This commit is contained in:
parent
b62042718f
commit
eeb632e58c
@ -42,7 +42,7 @@ public class LobbyMenu extends ShopPageBase<ServerManager, LobbyShop>
|
||||
|
||||
MinecraftServer serverStatus = server.getServer();
|
||||
|
||||
ItemBuilder builder = new ItemBuilder(Material.IRON_BLOCK);
|
||||
ItemBuilder builder = new ItemBuilder(Material.IRON_BLOCK, Math.max(1, Math.min(server.getNumber(), 64)));
|
||||
String colour = C.cYellow, bottomLine = "Click to Join!";
|
||||
boolean sameServer = serverName.equals(serverStatus.getName());
|
||||
boolean full = serverStatus.getPlayerCount() >= serverStatus.getMaxPlayerCount();
|
||||
|
@ -135,7 +135,6 @@ import mineplex.minecraft.game.core.condition.Condition;
|
||||
import mineplex.minecraft.game.core.condition.ConditionManager;
|
||||
import mineplex.minecraft.game.core.damage.DamageManager;
|
||||
import mineplex.minecraft.game.core.fire.Fire;
|
||||
import mineplex.serverdata.Region;
|
||||
|
||||
import nautilus.game.arcade.addons.SoupAddon;
|
||||
import nautilus.game.arcade.booster.GameBoosterManager;
|
||||
@ -1118,7 +1117,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
}
|
||||
|
||||
// MPS
|
||||
if (_gameHostManager.isPrivateServer() && _gameHostManager.getHostRank().hasPermission(Perm.FEATURED_SERVER))
|
||||
if (_gameHostManager.isPrivateServer() && _gameHostManager.getHostRank() != null && _gameHostManager.getHostRank().hasPermission(Perm.FEATURED_SERVER))
|
||||
{
|
||||
hostRank = _gameHostManager.getHostRank();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user