don't you worry Shaun, I gotcha back with fixing them constructor problems ;)
This commit is contained in:
parent
c6ff845efa
commit
af6e28f14b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user