diff --git a/Plugins/Mineplex.Hub/src/mineplex/hub/server/ui/ServerNpcPage.java b/Plugins/Mineplex.Hub/src/mineplex/hub/server/ui/ServerNpcPage.java index d0517a119..46f0428f6 100644 --- a/Plugins/Mineplex.Hub/src/mineplex/hub/server/ui/ServerNpcPage.java +++ b/Plugins/Mineplex.Hub/src/mineplex/hub/server/ui/ServerNpcPage.java @@ -98,7 +98,7 @@ public class ServerNpcPage extends ShopPageBase im if (serverInfo.CurrentPlayers >= serverInfo.MaxPlayers) { - if (!serverInfo.Game.equalsIgnoreCase("Survival Games")) + if (serverInfo.Game.equalsIgnoreCase("Survival Games")) { lore.add(ChatColor.RESET + C.Line + "Full Survival Games servers"); lore.add(ChatColor.RESET + C.Line + "cannot be joined."); @@ -113,9 +113,9 @@ public class ServerNpcPage extends ShopPageBase im } else { - if (serverInfo.Game.contains("Beta")) + if (getName().contains("Beta")) { - if (ownsUltraPackage) + if (DonationManager.Get(Player.getName()).OwnsUltraPackage()) lore.add(ChatColor.RESET + C.Line + "Click to join!"); else lore.add(ChatColor.RESET + C.Line + "Only Ultras can play games in Beta!"); @@ -200,6 +200,12 @@ public class ServerNpcPage extends ShopPageBase im public void SelectServer(Player player, ServerInfo serverInfo) { + if (getName().contains("Beta") && !(DonationManager.Get(Player.getName()).OwnsUltraPackage() || Client.GetRank().Has(Rank.ULTRA))) + { + PlayDenySound(player); + return; + } + int slots = Plugin.GetRequiredSlots(player, serverInfo.ServerType); if (serverInfo.MaxPlayers - serverInfo.CurrentPlayers < slots && !(DonationManager.Get(Player.getName()).OwnsUnknownPackage(serverInfo.ServerType + " ULTRA") || Client.GetRank().Has(Rank.ULTRA))) diff --git a/Website/LOCWebsite.suo b/Website/LOCWebsite.suo index 1803948db..1ff26b730 100644 Binary files a/Website/LOCWebsite.suo and b/Website/LOCWebsite.suo differ