mirror of
https://github.com/SunNetservers/MiniGames.git
synced 2025-09-17 11:27:55 +02:00
Implements #35
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
@@ -11,5 +11,5 @@ public class ParkourArenaPlayerRegistry extends AbstractArenaPlayerRegistry<Park
|
||||
protected String getEntryStateStorageKey() {
|
||||
return "parkour";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user