Implements #35

This commit is contained in:
2024-04-28 16:21:54 +02:00
parent 3a68d30044
commit 87788e60a3
13 changed files with 566 additions and 151 deletions

View File

@@ -52,4 +52,11 @@ public interface ArenaSession {
*/
void reset();
/**
* Gets the game-mode the player is playing
*
* @return <p>The game-mode the player is playing</p>
*/
@NotNull ArenaGameMode getGameMode();
}

View File

@@ -11,5 +11,5 @@ public class ParkourArenaPlayerRegistry extends AbstractArenaPlayerRegistry<Park
protected String getEntryStateStorageKey() {
return "parkour";
}
}

View File

@@ -123,6 +123,10 @@ public class ParkourArenaSession extends AbstractArenaSession {
// Teleport the player out of the arena
teleportToExit(false);
if (MiniGames.getInstance().getParkourArenaPlayerRegistry().getPlayingPlayers(this.arena).isEmpty()) {
resetLevers();
}
}
@Override