RA-TempFly

A daily temporary fly plugin for Paper 1.21.x with a per-player time budget, a fixed daily reset, bypass permission, Bedrock name matching, and PlaceholderAPI support.

Author: RajaAditya Website: rajaaditya.my.id Version: 1.0.0 API: Paper 1.21.x


Features

Daily Fly Time

  • Every player gets a daily fly budget (default 30 minutes)
  • Time is only used while flying, and the deduction interval is configurable
  • The budget resets at a fixed clock time every day (default 00:00, server time)
  • Players with the bypass permission fly without limit and without deduction

Simple Controls

  • /fly toggles fly mode for yourself
  • /fly <player> toggles it for someone else (needs a permission)
  • Flight stops automatically when the time runs out, and the player is told how much is left

Admin Tools

  • Add time to a player or set their time to an exact value
  • Reload configuration without restarting
  • Bedrock players are matched with or without the Floodgate prefix (Steve also finds .Steve)

Persistence

  • Player data is saved on quit, on the daily reset, and on a regular autosave interval
  • Every message lives in messages.yml

Dependencies

PluginRequiredPurpose
PlaceholderAPINo (softdepend)Enables %tempfly_*% placeholders

Installation

  1. Place RA-TempFly.jar into your plugins/ folder
  2. Restart the server
  3. Edit config.yml and messages.yml in plugins/RA-TempFly/
  4. Run /tempflyadmin reload

File Structure

text
1
plugins/RA-TempFly/
├── config.yml       # Daily time, reset clock, intervals
├── messages.yml     # All messages and placeholder text
└── (data file)      # Remaining fly time per player

Configuration

config.yml

yaml
1
settings:
  daily-time: 1800        # seconds of fly time per day (30 minutes)
  reset-time: "00:00"     # daily reset, 24h format, server local time
  deduct-interval: 1      # seconds between each deduction while flying
  autosave-interval: 300  # seconds between automatic saves
  bedrock-prefix: "."     # Floodgate prefix, "" to disable

permissions:
  bypass: "tempfly.bypass"

messages.yml

yaml
1
prefix: "&8[&bTempFly&8] &r"
fly-enabled: "%prefix%&aFly mode enabled."
fly-disabled: "%prefix%&cFly mode disabled."
no-time-left: "%prefix%&cYou have no fly time left today. Try again after reset."
time-out: "%prefix%&cYour fly time has run out."
time-left: "%prefix%&eFly time left: &f{time}"

placeholder:
  unlimited-color: "&#11CDA7"     # hex colors are supported
  unlimited-text: "Unlimited"

Available message placeholders: {player}, {time}, {amount}.


Commands

CommandDescriptionAccess
/flyToggle your own fly modePlayer
/fly <player>Toggle fly mode for another playertempfly.others
/tempflyadmin reload (alias /tfa)Reload the configurationAdmin
/tempflyadmin addtime <player> <seconds>Add fly time to a playerAdmin
/tempflyadmin settime <player> <seconds>Set a player's fly timeAdmin

Permissions

PermissionDefaultDescription
tempfly.usetrueUse /fly
tempfly.bypassopUnlimited fly time, nothing is deducted
tempfly.othersopToggle fly for other players
tempfly.adminopUse /tempflyadmin

PlaceholderAPI

Requires PlaceholderAPI. Identifier: tempfly.

PlaceholderDescription
%tempfly_time%Remaining time as mm:ss, or the "Unlimited" text for bypass players
%tempfly_time_raw%Remaining time in seconds, or -1 for bypass players

License

Developed by RajaAditya — rajaaditya.my.id