Fixed kits opening correct page.
This commit is contained in:
parent
464fdb1e5e
commit
02a1e68c8c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user