Perfect for survival servers. With this plugin you can charge players for the ability to fly over the worlds for a limited amount of time. Now all players will have the opportunity to be able to fly, your players will thank you.
100% customizable messages.
MySQL and SQLite (flat file) Support.
Custom items with custom actions.
Add as many items that you want.
Add time if you have some time left already. (example: I have 5 minutes left and I want more I buy a 15 minutes fly, I now have 20 minutes left)
Anti death when flight disables. (if a player runs out of time and is in the air he won't take damage for 6 seconds)
Save the player's time if the server goes off so players don't waste their money.
Automatic fly mode if the player has time left when he joins the server.
Announce time left in either titles, chat or both.
Custom items and inventory size.
In-game customization. (not 100% but its something )
Enable fly mode forever.
Enable fly mode for another player.
Custom open fly menu command.
Visual countdown time, with automatic update.
Hoverable an clickable help messages.
Refund system.
Multiple currencies supported.
Permissions for each item are customizable in the config.yml
Code (YAML):
################################################ # # # TimedFly 4 # # Made by By_Jack # # # ################################################
# Prefix of the plugin. Prefix: "&c&lTimedFly > &7"
# Enable this so your players can refund their flight time if they bought it by accident. Refunds:
Enable: true
# The time they have until the refund is valid TimeNoRefund: '5m'
# The amount of refunds players can make a day RefundsPerDay: 2
Database: # Type: sqlite for flatfile, and mysql or mongodb for an external database. Type: 'sqlite'
# Disable this if you're getting errors saying something about default values. UseDefaultValues: true
# Only edit if Type is 'mysql' or 'mongodb'. Server: # name of your database Database: 'timedfly'
# ip of your MySQL/MongoDB database Host: 'localhost'
# port of your MySQL/Mongodb database, commonly is 3306/27017 Port: 3306
# username of your MySQL database Username: 'user'
# password of your MySQL database Password: 'root'
CustomCommands:
Enable: true
# If set to true players will need a permission to use the command /fly (or the specified command) UsePermission:
Enable: false
Permission: 'timedfly.flygui'
# Custom command to open the Timed Fly menu. Commands: - 'fly'
- 'flymenu'
Gui:
Enable: true
# Custom name of the inventory DisplayName: "&cTimedFly Store" # Rows of the inventory (Use -1 to automatically set the slot size) Rows: -1
StopTimerOn: # If true the players time will be saved with the player leaves the server Leave: true
# If true flight will be disabled for the provided time if the player attacks a mob/player. Attack:
Enable: true
# Disable flight if the player attacks the provided entity. (player, mob, all, hostile, pacific) Entity: - '
all'
#- 'players' # You can provide multiple entities #- '!COW' # You can also provide an specific entity (add ! to the beginning to make it not disable flight if the entity after the ! was damaged) Cooldown: '10s'
# If true flight will be disabled if the player is on the ground. Ground: false
# If true the players time will be saved with the player enters one of the blacklisted worlds # Do not use if you are running the plugin with multiple servers liked via MySQL BlackListedWorld: false
Modules: # If "false" fly will be toggled by using the custom command, instead of using "/tfly toggle" ToggleCommandOnly: true
# If true players with "timedfly.fly.skipstore" will toggle flight mode if a command from OpenMenuCommand is used. ToogleFlight: false
# Set to true if you want to getFileConfiguration a message in the console saying who bought flight time. LogConsoleOnBuy: false
# If true a bossbar will appear when a player buys time (only servers v1.9 and above) BossBarTimer:
Enable: false
Color: green
Style: SEGMENTED_6
# If true player will join flying if they have some time left and the timer will continue. JoinFlying: # If false timer will not resume after joining. Enable: true
# Amount of blocks above the player's location. Height: 2
# Set to false if you are lazy and you are using spigot 1.8 Sounds:
Enable: true
Announcer: ENTITY_EXPERIENCE_ORB_PICKUP
FlightDisabled: ENTITY_WITHER_DEATH
# You can enable multiple currency types (Not recommended) # Available currencies are: none, vault, tokenmanager, playerpoints, levels, exp DefaultCurrency: vault
# This is the limit amount of time a player can add to his fly time # bypass this with timedfly.bypass.limit LimitMaxTime:
Time: 30 minutes
Cooldown: 1d
# Display some messages on Title/Actionbar. Messages:
Title: true
Chat: true
ActionBar: true
# Announce the time left chosen below to the player (time in seconds) Announcer:
Chat: false
Titles: true
Times: - '5m'
- '1m'
- '10s'
- '5s'
- '4s'
- '3s'
- '2s'
- '1s'
# A list of world in which you want the plugin to be Enable. World-List: # Available types: # enable: the plugin will work in worlds listed # disable: the plugin will not work in worlds listed # all: the plugin will work in all worlds Type: '
all'
Worlds: - 'world'
- 'survival'
Integrations: # If the server is running aSkyBlock and this is true players flight will be disabled when exiting the island aSkyblock: true
Check-For-Updates: # The name says it... Enable: true
# Auto download new updates Auto-Download: false
# Choose your own message file, if the language is not found english will be used. # Current languages english, spanish, hu, de, you can create your own and send it to me. # Do not edit any of the languages because they will get re-generated on every restart. # this is to update the file in case there are new values. # If you want to use your own make another file with the name you want. Language: english
Code (YAML):
Items:
'1':
Name: '&7
[time
] Fly'
Slot: -1
# Use -1 to add the item instead of setting it in the inventory Material: book
Data: 0
Amount: 1
Lore: - ' '
- '&eBalance: &7[balance]' - ' '
- '&eGet access to fly'
- '&efor
[time
]'
- ' '
- '&eCost: &a$[price]' - ' '
- '&7You will hide flying'
- '&7after the
[time
] minutes'
- ' '
- '&eTime Left: [time_left
]'
- ' '
Hide_Attributes: false
Hide_Enchants: true
Hide_Place_On: false
Hide_Potion_Effects: false
Hide_Unbreakable: false
Glow: false
# Makes the item glow like its enchanted UsePermission: false
Permission: something.here
PermissionMessage: You don't have permission to use this item. Try buying a rank
OnClick: # Commands that will run when the player clicks the item. Enable: false
Commands: - '
[sound
] ENTITY_EXPERIENCE_ORB_PICKUP'
OnFlyDisable: # Commands that will execute when flight disables. Enable: false
Commands: - '
[console
] say
%player% is using hacks D:' - '
[player
] say i''m using hacks >:D'
Price: 2000
# Price of the item, using the desired currency. Time: '15 minutes'
# Time to be added to the player who buys it Cooldown: '1h'
# Sets a cooldown for when the item can be used again Currency: 'vault'
# Available currencies: none, vault, tokenmanager, playerpoints, levels, exp
%player% - player executing the command.
%timeleft% - flight time left.
%time% - time bought or given
%itemid% - name given to the item in the config.
%seconds% - seconds left in announce.
%price% - price for enabling flight.
%balance% - displays the balance of the player (only in the item lore)
PlaceholderAPI:
%timedfly_timeleft%
%timedfly_timeleft_long%
%timedfly_timeleft_short%
%timedfly_timeleft_ms%
%timedfly_timeleft_cut%
%timedfly_timeleft_cut_long%
%timedfly_timeleft_cut_short%
Iranian server:
hub.madcraft.ir (you need to vote the get access, survival and skyblock)
Cracked.
Spanish server: play.minestom.com (you need to vote the get access, surival) Cracked.
This plugin recollects data like player and servers using this plugin with
Bstats.
If you have any issues, I need you to tell me because I can't fix the plugin if I don't know where the issue is.
You can just PM me, use the discussion area or
GitHub.