Sueta
FL

FlyTime

Version 1.2

Limit players' fly time!

·Plugin

FlyTime
This plugin allows you to limit players' time spent flying.

Features

  • Lightweight
  • Safe - Automatically puts player on the ground and stops counting fly time if they log out while flying
  • Highly configurable - every message can be changed. Flight time and reset interval can also be changed
  • Accurate - Tracks flight time to the second
  • UUID Compatible - flight times remain even if usernames change
  • Persistent file storage - flight times are not reset if the server is reloaded or shut down

Commands
[Optional Argument] <Required Argument>

  • /fly - fly for a limited or unlimited time depending on permission
  • /flytime [player] - check your own fly time someone else's
  • /flyreset <player> - reset someone's fly time
  • /flyreload - reload the plugin configuration

Permissions

  • flytime.fly - fly and check your own fly time with /flytime
  • flytime.unlimitedfly - fly without time restriction
  • flytime.others - check others' fly time with /flytime [player]
  • flytime.reset - reset others' fly time with /flyreset <player>
  • flytime.reload - reload the plugin with /flyreload

Configuration

flyTime: 1800 # Amount of time in seconds of allowed flight
flyResetTime: 86400 # Interval of flight reset. Set to -1 to disable
teleportOnLogout: true # enables/disables teleportation to the ground after logging out
autoTeleportToGround: true # enables/disables teleportation to the ground after disabling flight
prefix: '&3[&bFlyTime&3]&r ' # prefixes all messages.
lang: # change all messages here
  noFlyPermissionMessage: '&cYou can''t fly!'
  noFlyTimePermissionMessage: '&cYou don''t have permission to check others'' fly
    time!'
  noResetPermissionMessage: '&cYou don''t have permission to reset fly times!'
  noReloadPermissionMessage: '&cYou don''t have permission to reload FlyTimes!'
  timeLeft: '&aYou have %MINUTES% minutes and %SECONDS% seconds of flight remaining.'
  timeLeftPlayer: '&a%PLAYER% has %MINUTES% minutes and %SECONDS% seconds of flight
    remaining.'
  timeLeftWarning: '&cWarning: %SECONDS% of flight remaining'
  enabled: '&aFlight enabled.'
  enabledUnlimited: '&aUnlimited flight enabled.'
  disabled: '&cFlight disabled.'
  disabledUnlimited: '&cUnlimited flight disabled.'
  noFlightTime: '&cYou''re out of flight time!'
  hasNotFlown: '&c%PLAYER% has not flown'
  usage: '&cUsage: %COMMAND%'
  flytimereset: '&aReset fly time for %PLAYER%'
  pluginreload: '&aFlyTime reloaded!'
  attemptGroundTp: '&aAttempting to teleport you to the ground safely...'
  groundTpFail: '&cCouldn''t find a safe landing spot!'

*Note: Fly time resets are checked on player join. This means if you are online when your fly time is reset, you must rejoin for it to take effect.

Requirements

  • Vault (used for permissions)

PLEASE LEAVE GLITCHES ON GITHUB, NOT IN REVIEWS.
Github Issues
Github Code

Thank you! Enjoy!

Similar projects

Plugin →