FlyCoinPLugin icon

FlyCoinPLugin -----

Temporary flight with costs, cooldown, and protection.



FlyPlugin allows players to activate temporary flight on the server by spending in-game currency (coins). The plugin manages flight control, including time limits, usage costs, fall protection after deactivation, and the ability to reload the configuration.

Features:
  1. Flight Activation:
    • The /fly command allows players to enable or disable flight.
    • Flight is charged based on the configuration (e.g., 5 coins per minute).
    • After the allotted time expires, the plugin checks if the player has enough coins:
      • If the player has enough coins, flight continues.
      • If not, flight is automatically disabled.
  2. Fall Protection:
    • After flight is disabled (manually or due to time expiration), the player receives 10 seconds of fall damage immunity.
  3. Cooldown:
    • After flight is disabled, the player must wait a configurable cooldown period (e.g., 60 minutes) before enabling flight again.
  4. Configuration Reload:
    • Admins can use the /fly reload command to reload the configuration without restarting the server.
    • Requires the flyplugin.admin permission.
Configurable Settings (config.yml):
  • Cost per minute of flight:
    • price-per-minute: 5
  • Initial flight time upon activation:
    • initial-flight-time: 1 (in minutes)
  • Cooldown time between activations:
    • cooldown: 60 (in minutes)
  • Messages:
    • All messages are fully customizable in the messages section of config.yml. For example:
Code (YAML):
# FlyPlugin Configuration File

# The price per minute of flight
price-per-minute
: 5

# Initial flight time (in minutes) given to players after activating flight
initial-flight-time
: 1

# Cooldown period (in minutes) after disabling flight before it can be re-enabled
cooldown
: 120

# Message prefix
message-prefix
: '&7 [FLY ]'

# Customize messages (optional, you can modify these to your preference)
messages
:
  no-permission
: "&7[FLY] &cYou do not have permission to use this command."
  flight-enabled
: "&7[FLY] &aFlight enabled! Cost: {price} coins per 1 minute."
  flight-disabled
: "&7[FLY] &eFlight has been disabled."
  not-enough-coins
: "&7[FLY] &cYou do not have enough coins to enable flight."
  cooldown-active
: "&7[FLY] &aYou cannot enable flight again. Please wait {time} minutes."
  remaining-flight-time
: "&7[FLY] &6Remaining flight time: {time} minutes."
  flight-time-expired
: "&7[FLY] &eFlight has been disabled. Time has expired."
  minute-passed
: "&7[FLY] &eA minute has passed, {price} coins have been deducted from your account."
  fall-immunity-expired
: "&7[FLY] &eAYour fall damage immunity has expired."
Commands:
  1. /fly
    • Activates or deactivates flight.
    • Available to all players.
  2. /fly reload
    • Reloads the configuration from config.yml.
    • Requires the permission: flyplugin.admin.
Permissions:
  • flyplugin.admin: Grants permission to use the /fly reload command.
Server Requirements:
  1. Vault API:
    • The plugin requires Vault to manage the in-game economy.
  2. Economy Plugin:
    • A plugin like EssentialsX or another Vault-compatible economy plugin must be installed.
Installation:
  1. Upload the .jar file of FlyPlugin to the plugins folder on your server.
  2. Restart the server.
  3. Check or customize the config.yml file as needed.
  4. Use /fly reload on the server to apply changes without restarting.
FlyPlugin is ideal for survival servers that want to offer flight as a premium feature while maintaining game balance. The plugin offers intuitive configuration and robust protection against misuse.

Technical Details:
  • Supported Versions: Compatible with the latest Minecraft server versions.
  • Author: Developed by Mesiacik.
  • Email: [email protected]
  • Applied and tested on live server: majnuj.com
Resource Information
Author:
----------
Total Downloads: 22
First Release: Jan 26, 2025
Last Update: Jan 26, 2025
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings