don't you worry Shaun, I gotcha back with fixing them constructor problems ;)

This commit is contained in:
NewGarbo 2015-11-09 20:29:27 +00:00
parent c6ff845efa
commit af6e28f14b

View File

@ -41,13 +41,13 @@ public class ClansManagePage extends ClansCommandPageBase
// Leave
ShopItem leave = new ShopItem(Material.POTATO, "Leave Clan", new String[] {}, 1, false, false);
addButton(13, leave, new ClanLeaveButton(getPlugin(), getPlayer(), clanInfo, clanRole));
addButton(13, leave, new ClanLeaveButton(getShop(), getPlugin(), getPlayer(), clanInfo, clanRole));
// Disband
boolean canDisband = clanRole == ClanRole.LEADER;
ShopItem disband = new ShopItem(Material.TNT, "Disband Clan", new String[] {}, 1, !canDisband, false);
if (canDisband)
addButton(15, disband, new ClanDisbandButton(getPlugin(), getPlayer(), clanInfo, clanRole));
addButton(15, disband, new ClanDisbandButton(getShop(), getPlugin(), getPlayer(), clanInfo, clanRole));
else
setItem(15, disband);