Skip to content

Configuration

TempFly uses two configuration files: config.yml for general settings and messages.yml for all plugin messages.

config.yml

Options

PropertyTypeDefaultDescription
default-flight-timeInteger300Seconds of flight time given when a player uses /fly for the first time.
slow-fall-durationInteger5Duration in seconds of the Slow Falling effect applied when flight expires or the player changes worlds.
disabled-worldsList[]World names where TempFly flight is disabled. Case-insensitive. Players already flying when entering a disabled world are safely grounded.

action-bar

These settings are nested under action-bar in config.yml.

PropertyTypeDefaultDescription
always-showBooleanfalseWhen true, the action bar is shown every second while flight is enabled. When false, it only appears when remaining time is at or below warning-threshold.
warning-thresholdInteger60Seconds remaining at which the action bar begins showing (when always-show is false). Has no effect if always-show is true.
only-while-flyingBooleantrueWhen true, the action bar only shows while the player is actively airborne. When false, it shows whenever flight is enabled, even while grounded.

messages.yml

All messages support MiniMessage formatting. The prefix key is prepended to relevant messages automatically.

Messages

KeyPlaceholdersDescription
prefixPlugin prefix prepended to most messages.
fly-enabledShown to the player when they enable flight with /fly.
fly-disabledShown to the player when they disable flight with /fly.
fly-no-timeShown when a player tries to enable flight but has no remaining time.
fly-disabled-worldShown when a player tries to enable flight in a disabled world.
fly-enabled-worldShown when a player's flight is re-enabled after leaving a disabled world.
fly-survival-onlyShown when a player tries to use /fly outside of Survival mode.
unlimited-textText used to represent unlimited flight time (used in the action bar).
action-bar<time>Action bar message shown while flight is active. <time> is replaced with the formatted remaining time or the unlimited-text value.
give-success<player>, <amount>, <total>Shown to the admin after adding time to a player. <amount> is the added seconds; <total> is the new total.
give-subtract<player>, <amount>, <total>Shown to the admin after subtracting time from a player. <amount> is the absolute value subtracted; <total> is the new total.
set-success<player>, <amount>Shown to the admin after setting a player's flight time. <amount> is the new value in seconds.
player-not-foundShown when the specified player cannot be found.
reload-successShown after a successful /tempfly reload.

Time Format

The time-format key controls how remaining flight time is displayed in the action bar.

TokenDescription
<hh>Hours, zero-padded (e.g., 05).
<mm>Minutes, zero-padded (e.g., 03).
<ss>Seconds, zero-padded (e.g., 45).

The default format is <mm>:<ss>. If <hh> is omitted, minutes overflow freely beyond 59. If both <hh> and <mm> are omitted, seconds overflow freely.

Examples:

Format3725 seconds remaining
<mm>:<ss>62:05
<hh>:<mm>:<ss>01:02:05
<ss>s3725s

All rights reserved