mirror of
https://github.com/SunNetservers/MiniGames.git
synced 2025-09-17 11:27:55 +02:00
Denies playing hardcore in a no-checkpoint arena
This commit is contained in:
@@ -222,6 +222,15 @@ public class ParkourArena implements Arena {
|
||||
return copy;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets whether this arena has no checkpoints
|
||||
*
|
||||
* @return <p>True if this arena has no checkpoints</p>
|
||||
*/
|
||||
public boolean hasNoCheckpoints() {
|
||||
return this.checkpoints.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets this arena's sanitized name
|
||||
*
|
||||
|
@@ -18,7 +18,7 @@ public enum ParkourArenaGameMode implements ConfigurationSerializable, ArenaGame
|
||||
DEFAULT,
|
||||
|
||||
/**
|
||||
* A hard-core game mode where no checkpoints are allowed
|
||||
* A hardcore game mode where no checkpoints are allowed
|
||||
*/
|
||||
HARDCORE,
|
||||
;
|
||||
|
Reference in New Issue
Block a user