Remove some debug code.

This commit is contained in:
Jonathan Williams 2015-08-07 02:22:58 -05:00
parent e8c60e6e84
commit 320a3efe5b
2 changed files with 4 additions and 4 deletions

View File

@ -346,7 +346,6 @@ public class ServerManager extends MiniPlugin
public Collection<ServerInfo> getServerList(String serverNpcName)
{
System.out.println("contains?" + _serverKeyInfoMap.containsKey(serverNpcName));
return _serverKeyInfoMap.get(serverNpcName);
}

View File

@ -52,8 +52,6 @@ public class ServerNpcPage extends ShopPageBase<ServerManager, ServerNpcShop> im
@Override
protected void buildPage()
{
System.out.println(_serverGroupName);
System.out.println("getPlugin() null?" + (getPlugin() == null));
List<ServerInfo> serverList = new ArrayList<ServerInfo>(getPlugin().getServerList(_serverGroupName));
int slotsNeeded = 1;
@ -277,7 +275,9 @@ public class ServerNpcPage extends ShopPageBase<ServerManager, ServerNpcShop> im
if (serverInfo.MOTD.contains("Open in"))
setItem(slot, shopItem);
else
{
addButton(slot, shopItem, new JoinServerButton(this, serverInfo));
}
if (full)
fullCount++;
@ -410,7 +410,8 @@ public class ServerNpcPage extends ShopPageBase<ServerManager, ServerNpcShop> im
}
public void SelectServer(Player player, ServerInfo serverInfo)
{
{
System.out.println("Selecting server :" + serverInfo.Name);
int slots = getPlugin().getRequiredSlots(player, serverInfo.ServerType);
if (serverInfo.getAvailableSlots() < slots && !(getDonationManager().Get(getPlayer().getName()).OwnsUnknownPackage(serverInfo.ServerType + " ULTRA") || getClient().GetRank().Has(Rank.ULTRA)))