Skip to content

Commit 536f66d

Browse files
committed
Setting up new game mode, potion madness
1 parent 0bd0cd2 commit 536f66d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main/java/io/shantek/BingoCompleter.java

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public List<String> onTabComplete(CommandSender commandSender, Command command,
6161
List<String> gameModes = new ArrayList<>();
6262
gameModes.add("traditional");
6363
gameModes.add("speedrun");
64+
gameModes.add("potionmadness");
6465
return StringUtil.copyPartialMatches(args[4], gameModes, new ArrayList<>());
6566
}
6667

src/main/java/io/shantek/managers/BingoGameGUIManager.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public BingoGameGUIManager(UltimateBingo ultimateBingo) {
2323
optionsMap = new HashMap<>();
2424
optionsMap.put("difficulty", new String[]{"easy", "normal", "hard"});
2525
optionsMap.put("cardSize", new String[]{"small", "medium", "large"});
26-
optionsMap.put("gameMode", new String[]{"speedrun", "traditional"});
26+
optionsMap.put("gameMode", new String[]{"speedrun", "traditional", "potionmadness"});
2727
optionsMap.put("uniqueCard", new String[]{"unique", "identical"});
2828
optionsMap.put("fullCard", new String[]{"full card", "single row"});
2929
optionsMap.put("revealCards", new String[]{"enabled", "disabled"});
@@ -87,6 +87,9 @@ public void toggleGameMode(Player player) {
8787
ultimateBingo.gameMode = "speedrun";
8888
break;
8989
case "speedrun":
90+
ultimateBingo.gameMode = "potionmadness";
91+
break;
92+
case "potionmadness":
9093
ultimateBingo.gameMode = "random";
9194
break;
9295
case "random":
@@ -335,6 +338,8 @@ private Material setGUIIcon(String type) {
335338
} else if (type.equalsIgnoreCase("gamemode")) {
336339
if (ultimateBingo.gameMode.equalsIgnoreCase("speedrun")) {
337340
materialToDisplay = Material.DIAMOND_BOOTS;
341+
} else if (ultimateBingo.gameMode.equalsIgnoreCase("potionmadness")) {
342+
materialToDisplay = Material.POTION;
338343
} else if (ultimateBingo.gameMode.equalsIgnoreCase("random")) {
339344
materialToDisplay = Material.LADDER;
340345
} else {

0 commit comments

Comments
 (0)