Denies playing hardcore in a no-checkpoint arena

This commit is contained in:
2023-04-28 15:32:51 +02:00
parent e039840e89
commit fc1902e86a
4 changed files with 21 additions and 1 deletions

View File

@@ -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
*

View File

@@ -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,
;