▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/FlyCraft
FlyCraft

FlyCraft

Advanced /fly plugin for your minecraft server!

1.5K
2

FlyCraft v1.4.6 - Official Documentation

Overview

FlyCraft is a lightweight and powerful flight management plugin for Minecraft servers. It allows players to toggle flight mode, adjust flight speed, and integrate with Discord for remote management. With built-in metrics, update checking, and LuckPerms integration, it provides a complete flight control solution for your server.


1. Core Features

  • Toggle Flight Mode – Enable or disable flight for players
  • Configurable Flight Duration – Set limits on flight time
  • Customizable Cooldown System – Prevents excessive flight toggling
  • Adjustable Fly Speed – Speed levels from 1 (slowest) to 10 (fastest)
  • Group-Based Permissions – Group system with LuckPerms integration
    • Automatic group detection
    • Group-specific settings
    • Inherited permissions support
  • Speed Restrictions – Set maximum allowed speed per group
  • Welcome Messages – Display a message to new players
  • Full Discord Integration – Manage flights via Discord commands
  • Update Checker – Automatic version checking
  • Discord Notifications – Real-time flight activity tracking
  • LuckPerms Integration – Seamless permission management
  • Folia Support – Full support for Folia and modern server architectures

2. Commands

2.1 In-Game Commands

CommandDescriptionPermissionAliases
/fly [player]Toggle flying modeflycraft.useflymode
/flyspeed <1-10>Adjust flying speedflycraft.flyspeedN/A
/flycraftreloadReload the plugin configurationflycraft.reloadfcr, flyreload

Notes:

  • Using /fly [player] requires additional flycraft.others permission
  • /flyspeed requires both flycraft.flyspeed and appropriate flycraft.maxflyspeed.<1-10> permission
  • Fly speed is adjustable from 1 (slowest) to 10 (fastest)
  • Players can only set speeds up to their maximum allowed speed permission

2.2 Discord Commands

CommandDescriptionRequirements
!startfly <player>Enables flight for the specified playerRequires configured Discord role
!stopfly <player>Disables flight for the specified playerRequires configured Discord role
!flyspeed <player> <1-10>Sets the player’s flight speedRequires configured Discord role

3. Permissions

3.1 Basic Permissions

PermissionDescriptionDefault
flycraft.useAllows toggling flight modeop
flycraft.flyspeedAllows changing flight speedop
flycraft.flytimeAllows using flight time commandsop
flycraft.reloadAllows reloading the configurationop
flycraft.othersAllows managing flight for other playersop

3.2 Speed Control Permissions

PermissionDescriptionDefault
flycraft.maxflyspeed.1Allows setting fly speed up to 1op
flycraft.maxflyspeed.2Allows setting fly speed up to 2op
flycraft.maxflyspeed.3Allows setting fly speed up to 3op
flycraft.maxflyspeed.4Allows setting fly speed up to 4op
flycraft.maxflyspeed.5Allows setting fly speed up to 5op
flycraft.maxflyspeed.6Allows setting fly speed up to 6op
flycraft.maxflyspeed.7Allows setting fly speed up to 7op
flycraft.maxflyspeed.8Allows setting fly speed up to 8op
flycraft.maxflyspeed.9Allows setting fly speed up to 9op
flycraft.maxflyspeed.10Allows setting fly speed up to 10op

3.3 Permission Groups

PermissionDescriptionIncludes
flycraft.*Grants all FlyCraft permissionsAll permissions listed above

4. Permission Systems

4.1 Basic Permissions (All Permission Plugins)

If you're using any permission plugin other than LuckPerms (like PermissionsEx, GroupManager, etc.), use these basic permissions to control access:

  • flycraft.use - Allow flight
  • flycraft.flyspeed - Allow speed changes
  • flycraft.maxflyspeed.<1-10> - Set maximum allowed speed
  • flycraft.others - Manage other players
  • flycraft.reload - Reload configuration

4.2 Group System (LuckPerms Only)

FlyCraft includes a powerful group-based permission system that works exclusively with LuckPerms. When LuckPerms is installed, the plugin will automatically use group settings from groups.yml based on the player's LuckPerms groups. If LuckPerms is not installed, the plugin will fall back to using the basic permission system.

4.1 Group Configuration (groups.yml)

groups:
  default:
    can-fly: false
    max-fly-speed: 1
    flight-duration: 300
    flight-cooldown: 60

  vip:
    can-fly: true
    max-fly-speed: 3
    flight-duration: 600
    flight-cooldown: 30

  mvp:
    can-fly: true
    max-fly-speed: 5
    flight-duration: 1200
    flight-cooldown: 15

  admin:
    can-fly: true
    max-fly-speed: 10
    flight-duration: -1
    flight-cooldown: 0

4.2 Group Settings

SettingDescriptionDefault
can-flyWhether the group can use flightfalse
max-fly-speedMaximum flight speed (1-10)1
flight-durationFlight duration in seconds (-1 for unlimited)300
flight-cooldownCooldown between flights in seconds60

4.3 Group System Features (LuckPerms Only)

  • LuckPerms Integration: Automatically detects player groups
  • Inherited Permissions: Support for LuckPerms inheritance system
  • Group Priorities: Uses primary group with fallback to inherited groups
  • Default Group: Fallback settings for players without a specific group

Important Note: The group system requires LuckPerms to be installed and enabled on your server. If you're using a different permission plugin, please use the basic permissions system described in section 4.1.


5. Configuration (config.yml)

4.1 General Settings

# Update Checker Settings
update-checker:
  enabled: true
  notify-ops: true
  debug: false

# Flight Settings
flight-duration: 300  # Duration of flight in seconds (default: 300)
flight-cooldown: 60   # Cooldown time between flights (default: 60)
welcome-message-enabled: true  # Enable welcome messages

# Messages can be customized with color codes (&)
messages:
  flight-enabled: "&aFlight enabled for %time% seconds!"
  flight-disabled: "&cFlight disabled!"
  flight-expired: "&cYour flight time has expired!"
  cooldown: "&cYou must wait %time% seconds before flying again!"

4.2 Discord Integration

discord:
  enabled: true
  channel-id: "YOUR_CHANNEL_ID"
  bot-token: "YOUR_BOT_TOKEN"
  bot-settings:
    status: "ONLINE"  # ONLINE, IDLE, DO_NOT_DISTURB, INVISIBLE
    activity:
      type: "PLAYING"  # PLAYING, WATCHING, LISTENING, COMPETING
      message: "with %online_players% players"
  commands:
    enabled: true
    prefix: "!"
    allowed-roles:
      - "ROLE_ID_1"
      - "ROLE_ID_2"
  embed:
    enabled: true
    color:
      start: "#3498db"
      end: "#e74c3c"
      speed: "#f1c40f"
    thumbnail:
      enabled: true
      url: "https://minotar.net/avatar/%player%/64"
    footer:
      text: "FlyCraft • %server_name%"

4.3 Bot Activity Settings

bot-activity:
  type: PLAYING  # Options: PLAYING, WATCHING, LISTENING, COMPETING
  message: "Flying on %server_name% with %online_players%/%max_players% online!"

5. Discord Features

5.1 Notifications

  • Flight start/stop alerts
  • Speed change updates
  • Total flight time tracking
  • Player avatars included in embeds

5.2 Message Formatting

  • Supports custom emojis
  • Displays player names and server info
  • Tracks flight duration

6. Time Formatting

Automatically formats time periods for clarity:

  • 25 seconds
  • 1 minute 30 seconds
  • 2 hours 15 minutes 45 seconds

7. Dependencies

Required

  • Minecraft Server: Spigot/Paper 1.13+
  • JDA (Discord API): 5.0.0-beta.13

Optional (For Enhanced Features)

  • PlaceholderAPI – Dynamic placeholders support
  • Vault – Economy and permissions support
  • DiscordSRV – Alternative Discord integration

8. PlaceholderAPI Support

FlyCraft fully supports PlaceholderAPI, allowing you to display flight information in scoreboards, chat, tab lists, and menus.

8.1 Global Placeholders

PlaceholderDescription
%flycraft_flying_count%Number of players currently flying

8.2 Player Placeholders

PlaceholderDescription
%flycraft_is_flying%Returns true or false
%flycraft_status%Returns "Flying" or "Not Flying"
%flycraft_time_left%Remaining flight time (e.g., "5m 30s") or "Unlimited"
%flycraft_can_fly%Returns true if player has permission to fly
%flycraft_speed%Current flight speed (e.g., "1", "2")
%flycraft_max_speed%Player's maximum allowed flight speed
%flycraft_cooldown%Remaining cooldown time (e.g., "30s") or "Ready"
%flycraft_group%Returns "Authorized" or "Unauthorized" based on group access

8.3 Specific Player Placeholders

Replace <playername> with the name of the target player.

PlaceholderDescription
%flycraft_status_<playername>%Fly status of specific player
%flycraft_cooldown_<playername>%Cooldown status of specific player
%flycraft_max_speed_<playername>%Max speed of specific player

9. Technical Features

  • Async Discord Messaging – Improves performance
  • Safe Reload Handling – Prevents crashes during reloads
  • Automatic Cooldown Management – Ensures fair gameplay
  • Flight Time Tracking – Monitors player flight duration
  • Speed Conversion Handling – Converts between Minecraft speed units
  • Error Logging & Handling – Logs issues for troubleshooting
  • Event-Based Architecture – Efficient and modular

10. Messages

All messages are customizable in config.yml:

  • Plugin enable/disable messages
  • Permission error messages
  • Flight status updates
  • Speed change notifications
  • Welcome messages
  • Discord alerts
  • Admin notifications

11. Safety Features

  • Permission Checks – Ensures players have the correct permissions
  • Input Validation – Prevents invalid command arguments
  • Error Handling – Captures and logs issues gracefully
  • Safe Discord Reconnection – Prevents bot disconnection issues
  • Cooldown Enforcement – Prevents spam abuse
  • Flight Duration Limits – Ensures balanced gameplay
  • Speed Range Limits (1-10) – Prevents unintended behavior

12. Development Information

  • API Version: 1.13
  • Java Version: 21
  • Build System: Maven-based
  • Open Source: Yes
  • Extendable Architecture: Designed for future expansions

Installation Guide

  1. Download FlyCraft v1.4 from the official repository.
  2. Place the .jar file in your server’s /plugins/ folder.
  3. Restart your server to generate configuration files.
  4. Edit config.yml to customize settings.
  5. (Optional) Configure Discord Bot for remote flight control.
  6. Reload the plugin using /flycraftreload or restart the server.

Support

For help, feature requests, or bug reports:


bStats

FlyCraft usage graph

License

License FlyCraft is an open-source project licensed under the GNU General Public License v3.0 (GPL-3.0). You are free to use, modify, and distribute it, provided that:

  • Proper credit is given to the original author (Borhani).
  • Any modifications or redistributed versions are also licensed under GPL-3.0.
  • The original license is included in all copies or substantial portions of the project.

For full license details, see: GNU GPL v3.


Credits

Developed by Borhani.


Совместимость

Minecraft: Java Edition

1.21.x1.20.x1.19.x1.18.x1.17.x1.16.x1.15.x1.14.x1.13.x

Поддерживаемые окружения

Сервер

Детали

Лицензия:GPL-3.0-only
Опубликован:1 год назад
Обновлён:2 месяца назад
Главная