MPS changed requested by <insert meow here>.

This commit is contained in:
William Burns 2015-07-24 21:15:19 +01:00
parent 956d685549
commit c1e5c2a9dc
5 changed files with 7 additions and 8 deletions

View File

@ -36,7 +36,7 @@ public class ChooseMapPage extends BasePage
int slot = 9;
for (String cur : getPlugin().LoadFiles(_gameType.GetName())){
ChooseMapButton btn = new ChooseMapButton(getPlugin(), getShop(), _gameType, cur);
addButton(slot, new ShopItem(Material.MAP, cur.split("_")[1], new String[]{"§7Click to select map."}, 1, false), btn);
addButton(slot, new ShopItem(Material.PAPER, cur.split("_")[1], new String[]{"§7Click to select map."}, 1, false), btn);
slot++;
}
}

View File

@ -87,7 +87,7 @@ public class EditRotationPage extends BasePage
private void addGameButton(int slot, final GameType type, boolean enabled)
{
String titleString = ChatColor.RESET + (enabled ? C.cGreen : C.cRed) + ChatColor.BOLD + type.GetLobbyName();
String titleString = ChatColor.RESET + (enabled ? C.cGreen : C.cRed) + ChatColor.BOLD + type.GetName();
String infoString = ChatColor.RESET + C.cGray + (enabled ? "Click to Disable" : "Click to Enable");
ShopItem shopItem = new ShopItem(type.GetMaterial(), type.GetMaterialData(), titleString, new String[]{infoString}, 1, false, false);
int itemCount = enabled ? 1 : 0;

View File

@ -129,14 +129,14 @@ public class GameVotingPage extends BasePage
votes++;
}
String curVotes = "§7Votes: §e" + votes;
ShopItem item = new ShopItem(type.GetMaterial(), type.GetMaterialData(), type.GetLobbyName(), new String[]{click, curVotes}, 1, false, false);
ShopItem item = new ShopItem(type.GetMaterial(), type.GetMaterialData(), type.GetName(), new String[]{click, curVotes}, 1, false, false);
addButton(slot, item, new IButton()
{
@Override
public void onClick(Player player, ClickType clickType)
{
getPlugin().GetGameHostManager().getVotes().put(player.getName(), type);
refresh();
player.closeInventory();
}
});
}

View File

@ -85,9 +85,9 @@ public class SetGamePage extends BasePage
{
String infoString = ChatColor.RESET + C.cGray + "Make this next Game Type";
String space = "§1";
String left = ChatColor.YELLOW + "Left-Click " + C.cGray + "for a §drandom map§7.";
String right = ChatColor.YELLOW + "Right-Click " + C.cGray + "to §6choose map§7.";
ShopItem shopItem = new ShopItem(type.GetMaterial(), type.GetMaterialData(), type.GetLobbyName(), new String[]{infoString, space, left, right}, 1, false, false);
String left = ChatColor.YELLOW + "Left-Click " + C.cGray + "for a §fRandom Map§7.";
String right = ChatColor.YELLOW + "Right-Click " + C.cGray + "to §fChoose Map§7.";
ShopItem shopItem = new ShopItem(type.GetMaterial(), type.GetMaterialData(), type.GetName(), new String[]{infoString, space, left, right}, 1, false, false);
addButton(slot, shopItem, new IButton()
{
@Override

View File

@ -125,7 +125,6 @@ public class GameHostManager implements Listener
legendGames.add(GameType.Evolution);
legendGames.add(GameType.MilkCow);
legendGames.add(GameType.SearchAndDestroy);
legendGames.add(GameType.SnowFight);
legendGames.add(GameType.ZombieSurvival);
//Config Defaults