Added castle siege quick join menu button.
This commit is contained in:
parent
2170f743dd
commit
264248ecfa
@ -680,4 +680,9 @@ public class ServerManager extends MiniPlugin
|
||||
{
|
||||
return _statusManager;
|
||||
}
|
||||
|
||||
public ShopBase<ServerManager> getCastleSiegeShop()
|
||||
{
|
||||
return _serverNpcShopMap.get("Castle Siege");
|
||||
}
|
||||
}
|
||||
|
@ -72,12 +72,21 @@ public class ServerGameMenu extends ShopPageBase<ServerManager, QuickShop>
|
||||
ChatColor.RESET + "control points on the map.",
|
||||
}));
|
||||
|
||||
this.setItem(7, ItemStackFactory.Instance.CreateStack(98, (byte)2, 1, ChatColor.RESET + C.Bold + ChatColor.YELLOW + "Castle Siege " + C.cGray + "Team Game", new String[]
|
||||
{
|
||||
ChatColor.RESET + "",
|
||||
ChatColor.RESET + "Defenders must protect King Sparklez",
|
||||
ChatColor.RESET + "from the endless waves of Undead",
|
||||
ChatColor.RESET + "until the sun rises!",
|
||||
}));
|
||||
|
||||
ButtonMap.put(1, new SelectSSMButton(this));
|
||||
ButtonMap.put(2, new SelectMINButton(this));
|
||||
ButtonMap.put(3, new SelectSGButton(this));
|
||||
ButtonMap.put(4, new SelectBRButton(this));
|
||||
ButtonMap.put(5, new SelectBHButton(this));
|
||||
ButtonMap.put(6, new SelectDOMButton(this));
|
||||
ButtonMap.put(7, new SelectCSButton(this));
|
||||
}
|
||||
|
||||
private void createTurfFortsCycle()
|
||||
@ -344,6 +353,11 @@ public class ServerGameMenu extends ShopPageBase<ServerManager, QuickShop>
|
||||
Plugin.getDominateShop().attemptShopOpen(player);
|
||||
}
|
||||
|
||||
public void openCS(Player player)
|
||||
{
|
||||
Plugin.getCastleSiegeShop().attemptShopOpen(player);
|
||||
}
|
||||
|
||||
public void OpenBR(Player player)
|
||||
{
|
||||
Plugin.getBridgesShop().attemptShopOpen(player);
|
||||
|
Loading…
Reference in New Issue
Block a user