Skip to content

Commit

Permalink
Setting up new game mode, potion madness
Browse files Browse the repository at this point in the history
  • Loading branch information
shantek committed Sep 13, 2024
1 parent 0bd0cd2 commit 536f66d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/io/shantek/BingoCompleter.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public List<String> onTabComplete(CommandSender commandSender, Command command,
List<String> gameModes = new ArrayList<>();
gameModes.add("traditional");
gameModes.add("speedrun");
gameModes.add("potionmadness");
return StringUtil.copyPartialMatches(args[4], gameModes, new ArrayList<>());
}

Expand Down
7 changes: 6 additions & 1 deletion src/main/java/io/shantek/managers/BingoGameGUIManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public BingoGameGUIManager(UltimateBingo ultimateBingo) {
optionsMap = new HashMap<>();
optionsMap.put("difficulty", new String[]{"easy", "normal", "hard"});
optionsMap.put("cardSize", new String[]{"small", "medium", "large"});
optionsMap.put("gameMode", new String[]{"speedrun", "traditional"});
optionsMap.put("gameMode", new String[]{"speedrun", "traditional", "potionmadness"});
optionsMap.put("uniqueCard", new String[]{"unique", "identical"});
optionsMap.put("fullCard", new String[]{"full card", "single row"});
optionsMap.put("revealCards", new String[]{"enabled", "disabled"});
Expand Down Expand Up @@ -87,6 +87,9 @@ public void toggleGameMode(Player player) {
ultimateBingo.gameMode = "speedrun";
break;
case "speedrun":
ultimateBingo.gameMode = "potionmadness";
break;
case "potionmadness":
ultimateBingo.gameMode = "random";
break;
case "random":
Expand Down Expand Up @@ -335,6 +338,8 @@ private Material setGUIIcon(String type) {
} else if (type.equalsIgnoreCase("gamemode")) {
if (ultimateBingo.gameMode.equalsIgnoreCase("speedrun")) {
materialToDisplay = Material.DIAMOND_BOOTS;
} else if (ultimateBingo.gameMode.equalsIgnoreCase("potionmadness")) {
materialToDisplay = Material.POTION;
} else if (ultimateBingo.gameMode.equalsIgnoreCase("random")) {
materialToDisplay = Material.LADDER;
} else {
Expand Down

0 comments on commit 536f66d

Please sign in to comment.