Skip to content

Commit

Permalink
Added ArenaOption path to values, so they don't get skipped!
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigerpanzer02 committed Jul 9, 2024
1 parent 71b3a53 commit 83b193b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### 2.0.10 Release (09.07.2024)
* Updated to minigamesbox 1.3.10
* Fixed arena after playing does not reset the arena options from config

### 2.0.9 Release (25.04.2024)
* Updated to minigamesbox 1.3.9

### 2.0.8 Release (24.04.2024)
* Updated to minigamesbox 1.3.8

Expand Down
1 change: 1 addition & 0 deletions src/main/java/plugily/projects/thebridge/arena/Arena.java
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ public void removeSpectatorPlayer(Player player) {
public boolean isSpectatorPlayer(Player player) {
return spectators.contains(player);
}

public void cleanUpArena() {
getBases().forEach(Base::reset);
resetPlacedBlocks();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,26 +69,22 @@ private void registerSpecialItems() {
}

private void registerArenaOptions() {
/**
* How many bases are on that arena?
*/
getArenaOptionManager().registerArenaOption("BASE_AMOUNT", new ArenaOption("null", 2));
/**
* How many players per base?
*/
getArenaOptionManager().registerArenaOption("BASE_PLAYER_SIZE", new ArenaOption("null", 4));
getArenaOptionManager().registerArenaOption("BASE_PLAYER_SIZE", new ArenaOption("maximumsize", 4));
/**
* How many points does an base need to win?
*/
getArenaOptionManager().registerArenaOption("MODE_VALUE", new ArenaOption("null", 5));
getArenaOptionManager().registerArenaOption("MODE_VALUE", new ArenaOption("modevalue", 5));
/**
* Reset blocks after round x
*/
getArenaOptionManager().registerArenaOption("RESET_BLOCKS", new ArenaOption("null", 0));
getArenaOptionManager().registerArenaOption("RESET_BLOCKS", new ArenaOption("resetblocks", 0));
/**
* Reset blocks after round x
*/
getArenaOptionManager().registerArenaOption("RESET_TIME", new ArenaOption("null", 5));
getArenaOptionManager().registerArenaOption("RESET_TIME", new ArenaOption("resettime", 5));
}

private IConfigPreferences getConfigPreferences() {
Expand Down

0 comments on commit 83b193b

Please sign in to comment.