Fixed kits opening correct page.

This commit is contained in:
Jonathan Williams 2014-03-09 19:42:54 -07:00
parent 464fdb1e5e
commit 02a1e68c8c

View File

@ -50,10 +50,7 @@ public class ClassCombatShop extends ShopBase<ClassShopManager>
OpenedShop.add(player.getName());
OpenShopForPlayer(player);
if (!PlayerPageMap.containsKey(player.getName()))
{
PlayerPageMap.put(player.getName(), BuildPagesFor(player));
}
ClientClass clientClass = Plugin.GetClassManager().Get(player);
@ -63,9 +60,14 @@ public class ClassCombatShop extends ShopBase<ClassShopManager>
pvpClass.ApplyArmor(player);
clientClass.ClearDefaults();
OpenPageForPlayer(player, new CustomBuildPage(Plugin, this, ClientManager, DonationManager, player));
CustomBuildPage buildPage = new CustomBuildPage(Plugin, this, ClientManager, DonationManager, player);
OpenPageForPlayer(player, GetOpeningPageForPlayer(player));
if (!PlayerPageMap.containsKey(player.getName()))
{
PlayerPageMap.put(player.getName(), buildPage);
}
OpenPageForPlayer(player, buildPage);
return true;
}