RA-TempFly
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
/flytoggles 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 (
Stevealso 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
| Plugin | Required | Purpose |
|---|---|---|
| PlaceholderAPI | No (softdepend) | Enables %tempfly_*% placeholders |
Installation
- Place
RA-TempFly.jarinto yourplugins/folder - Restart the server
- Edit
config.ymlandmessages.ymlinplugins/RA-TempFly/ - 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: "CDA7" # hex colors are supported
unlimited-text: "Unlimited"
Available message placeholders: {player}, {time}, {amount}.
Commands
| Command | Description | Access |
|---|---|---|
/fly | Toggle your own fly mode | Player |
/fly <player> | Toggle fly mode for another player | tempfly.others |
/tempflyadmin reload (alias /tfa) | Reload the configuration | Admin |
/tempflyadmin addtime <player> <seconds> | Add fly time to a player | Admin |
/tempflyadmin settime <player> <seconds> | Set a player's fly time | Admin |
Permissions
| Permission | Default | Description |
|---|---|---|
tempfly.use | true | Use /fly |
tempfly.bypass | op | Unlimited fly time, nothing is deducted |
tempfly.others | op | Toggle fly for other players |
tempfly.admin | op | Use /tempflyadmin |
PlaceholderAPI
Requires PlaceholderAPI. Identifier: tempfly.
| Placeholder | Description |
|---|---|
%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