Servers with more than 40 max slots always send to largest server.
Fixed space in Solo lore.
This commit is contained in:
parent
6a1e5d6bfc
commit
adcd91bf61
@ -598,7 +598,7 @@ public class ServerManager extends MiniPlugin
|
|||||||
{
|
{
|
||||||
ServerInfo largestServer = servers.get(0);
|
ServerInfo largestServer = servers.get(0);
|
||||||
|
|
||||||
if (largestServer.getAvailableSlots() >= MIN_SLOTS_REQUIRED)
|
if (largestServer.getAvailableSlots() >= MIN_SLOTS_REQUIRED || largestServer.MaxPlayers > 40)
|
||||||
{
|
{
|
||||||
return largestServer;
|
return largestServer;
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ public class ServerTypePage extends ShopPageBase<ServerManager, ServerNpcShop>
|
|||||||
setItem(12, ItemStackFactory.Instance.CreateStack(Material.SKULL_ITEM.getId(), (byte)3, 1, ChatColor.RESET + C.cYellow + "Solo " + C.cGray + name, new String[]
|
setItem(12, ItemStackFactory.Instance.CreateStack(Material.SKULL_ITEM.getId(), (byte)3, 1, ChatColor.RESET + C.cYellow + "Solo " + C.cGray + name, new String[]
|
||||||
{
|
{
|
||||||
ChatColor.RESET + "",
|
ChatColor.RESET + "",
|
||||||
ChatColor.RESET + C.cRed + C.Bold + "WARNING:" + ChatColor.RESET + "Teaming in Solo Mode is bannable!",
|
ChatColor.RESET + C.cRed + C.Bold + "WARNING: " + ChatColor.RESET + "Teaming in Solo Mode is bannable!",
|
||||||
ChatColor.RESET + "",
|
ChatColor.RESET + "",
|
||||||
ChatColor.RESET + C.cGreen + "Click to Play",
|
ChatColor.RESET + C.cGreen + "Click to Play",
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user