ChangeLog:
- Added a new language lang_pt-br.yml.
- Added PlayerPoints support. (Togglable in the config. Use %points% to get the player's points).
- Added cooldown per item. (You need to add Cooldown: 1h to each of your items in items.yml).
- Added a sub command /tfly fix, to fix any issues with the player not getting its flight ability back.
- Added a refund system, because why not. /tfly refund
- Fixed when changing gamemodes player could not fly again.
- Fixed error that the player could get infinite flight time if landing at 0 seconds left.
- Fixed flight auto-fly-enable if the player paused the time.
- Fixed that the on/off message was sent to the wrong player.
- Fixed an issue with the disable flight in combat mode.
- Removed Vault from dependencies, now added to soft dependencies. (Now the plugin can work without Vault)
IMPORTANT:
On your config.yml file please add:
Code (YAML):
Refunds:
Enabled
: true
TimeRefund
: 5m
RefundsPerDay
: 2
On your items.yml file please add this to all your items
Code (YAML):
Cooldown
: 1h
On your language file please add this under the others part
Code (YAML):
Refund:
TimeLimit
: '&7You have reached the time limit to be able to refund this. Limit is &a
%refund_limit%'
MaxRefunds
: '&7You have reached the max refunds today. Try again in &a
%refund_cooldown%'
NotValid
: '&7There was an error while trying to refund.'
Refunded
: '&7You have been refunded &a
%refund_amount%.'
Disabled
: '&7Refunds are disabled.'
Fixed
: '&7Your flight has been fixed.'
I you have any problems let me know, join my discord server if you have to.