feat: make warmup cancellation conditions configurable, close #564

This commit is contained in:
William committed 2024-03-31 19:37:30 +01:00
1 parent f4437806b6
commit a95c3e03b7
2 files changed
+8 -2

No files matched your search

@@ -137,6 +137,12 @@ public final class Settings {
@Comment("How long a player has to stand still and not take damage for when teleporting (in seconds) ")
private int teleportWarmupTime = 5;
@Comment("Whether the teleport warmup timer should be cancelled if the player takes damage")
private boolean teleportWarmupCancelOnDamage = true;
@Comment("Whether the teleport warmup timer should be cancelled if the player moves")
private boolean teleportWarmupCancelOnMove = true;
@Comment("Where the teleport warmup timer should display (CHAT, ACTION_BAR, TITLE, SUBTITLE or NONE)")
private Locales.DisplaySlot teleportWarmupDisplay = Locales.DisplaySlot.ACTION_BAR;