Fly Payment
Fly Payment
Make flying cost something! When a player uses the fly command, it'll cost them a(n) item(s), and/or Economy Currency (whatever you specify in the config), and/or EXP to activate flying. Once they disable flying, it'll cost the player another set of item(s) and/or Economy Currency (whatever you specify in the config), and/or EXP to start flying again. Also, you can set a time limit for how long their flying is enabled until they must pay again. If you want another feature added, just say so in the comments.Fly Payment 3.4 has been tested with CB 3074 (Development build for Minecraft 1.7.9) as well as Spigot 1449 (Development build for Minecraft 1.7.9)
Features
- 12 Custom groups
- The ability to charge through Economy money (Like iConomy, BOSEconomy, etc.) or through items
- Edit what item and how much of that item to charge for Flying
- Edit how much EXP is charged
- Edit how long the flying will be enabled until the player must buy it again
- Edit how much money will be charged, including decimal values (if your economy plugin supports it)
- Edit type of fly mode
- Ban worlds that Fly Payment can be used in
- Timed Free Fly mode
- Fly ban system (ban on Fly Payment usage, not flying with any other plugin
- Combat Temporary Ban System - if a player engages in PvP, you can temp ban them from flying
- Custom messages
- When flying is disabled, edit whether the player takes damage from the fall
Requirement
Source
Commands
Command | Explanation (All Commands can be used with /FP, or /FlyPayment) |
---|---|
/FP | Shows the commands' syntax. |
/FP On | If the player has the items/EXP/money, the player will start flying for the specified amount of time in the config. |
/FP Off | Disables flight |
/FP Ban <Player> [Time] | Bans player for an optional amount of time |
/FP RemoveBan <Player> | Removes player ban |
/FP CheckBan <Player> | Checks if the player is banned, and gives the amount of time banned |
/FP FreeFly <on:off> [time] | Turns free fly on, or off. If on, you can have a time limit. |
Helpful Links:
Configuration
Permissions
This plugin uses plugin metrics. More information can be found here:Plugin Metrics
Bugs
- None! Yay!
Plans
- Add a fly limit criteria in config. (For example, players can only fly 5 minutes every 5 hours, or 30 minutes every 2 days, etc.)
- Add the option to pay a multiple of the default amount, to increase the time (ex. If you pay double the default amount, you'll fly for double the time)
- Add a "Hunger Drain" option in config
- Add 'No Fly" Zone as WorldGuard flag
- Add a countdown timer (as in, 10, 9, 8, 7...)
- Add custom 'Fly Speed' option
- Add 'Flight enabled on world change' option
- (If you want another feature added, just say so in the comments.)
Suggestions? Requests? Ask in the comments and I'll see what I can do.
Like Fly Payment?Donate Here
Thank You everyone for the downloads!
@dropposite
I noticed that too, but it it is a problem with the fp reload command. if you restart the server the change in times takes affect. they just dont get read in during a reload for some reason
I'm trying to make it so that different ranks can fly for different amounts of time.
However. When a player does '/fp on' it says "An internal error occurred while attempting to perform this command" But when the same player does '/fp off', it says "Flying is already disabled [player]!"
Anyone have any idea what I'm doing wrong here?
Not working in mode 0. no matter what I set it to, it takes the item out every 1 second
not working in mode 1. I have TimerAmountTier1: 900 (as I want to fly for 15 minutes) but when player does /fp on, the console shows "intLong = 9000000", and the player only flys for about a minute.
love the plugin, as its my solution to the Aug 1st balancing act we have to pull. everyone can fly now.
Could you make it so that you can only buy flight in zones you own? Like towny plots or the whole town if you have permission to build on it.
@Th3PotatoArmyHD
What version of Craftbukkit/Spigot are you running? Do you have Vault installed?
@samueli5750
Thanks for the bug find! Please report this on the bug tracker, or post the bug here:
https:github.com/ColbyLeclerc/FlyPayment/issues Thanks!
Bug. is enable with lore on items such as i set diamond called "o" then there are no lore . is will cause error msg:
[12:15:55 INFO]: officialGM issued server command: /fp on [12:15:55 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'fp' in plugin FlyPayment v3.4 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [cra ftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:17 5) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServe r.java:706) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerCon nection.java:984) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java :829) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java :28) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat .java:65) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:147 ) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.ServerConnection.c(ServerConnection.java :77) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:7 00) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:2 73) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:5 62) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java :469) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6 17) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] Caused by: java.lang.NullPointerException at com.ahellhound.bukkit.flypayment.PlayerPayments.getPlayerItemAmount(P layerPayments.java:188) [?:?] at com.ahellhound.bukkit.flypayment.Messages.itemRequirementMessage(Mess ages.java:72) [?:?] at com.ahellhound.bukkit.flypayment.Flight.enableFlight(Flight.java:58) [?:?] at com.ahellhound.bukkit.flypayment.Main.onCommand(Main.java:275) [?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [cra ftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] ... 13 more
Can this be configured so one person can grant another person flying for a set amount of time?
@euQsei
Pastebin that, bro. Takes up less space in the comments. http://pastebin.com/
http://pastebin.com/anLvLDJf
@Ahellhound
Yes, you are correct it keeps charging the player until they use /fp off or until the item, money, or xp are gone.
It tried doing on both with multiple configs, I think there is a bug setting an item price, i tried typing are, 0, -1 and everything else is set to 0 or -1 when asked. But i was getting an error message like you need to pay to use fly I can get the message if you like.
Thanks for your time!
UPDATE: I figured out why it keep charging me over and over i guess i had the withdrawtimer set wrong, sorry about the confusion here.
When you change the "ChargeitemNameteir1" to 0 -1 or and item name that is NOT in caps it breaks the plugin.
When i set it so it doesn't charge you any items, money, or xp, I get this error message like how i was talking about above: http://puu.sh/8ynOD.png So ATM there isnt a way to give fly for free. Here is my current config http://pastebin.com/SSD2hKNW Only working with the first two groups for now
%MoneyAmount% is appear 100% ?
Hello. In config: ChargeEXPTier1: 0
but the message on console is: "%prefix%&c%EXPChargeAmount% has been deducted from your total experience, %player%."
http://prntscr.com/3fz1ud
I'm trying to use money, but the message is wrong. Moreover, the variable value is not properly displaying ...
@dropstheblocks
Thanks for the help!
So, two things. 1. I think you found a bug, and feature request one shouldn't happen. As-in, correct me if i'm wrong, but after their fly time runs out, they are still being charged until they use /fly off.
Which fly mode is the bug happening on?
2. If you set all the cost values to '0', the fly should be free. If not, please reply what happens on your end, as I will be testing this as well.
Thanks for the help!
@Ahellhound Sorry for the late reply, I wasn't aware of that feature! But can i request a feature or two? I think there should be an option so once your fly time runs out on flying its it doesn't charge you again it just simply ends and you have to type the command again to activate it again. Also there doesn't seem to be a way to make the fly completely free, and still being able to use custom permission ranks, I don't want to charge players to use fly, I rather have them wait a certain time to use the command again. I should be able to achieve the command cool down with booscooldowns. If you need help with plugin testing ill be glad to help, Thanks for your time.
@dropstheblocks
Players should not be getting injured if they fall from the timer ending. If a player is damaged from fall damage after the timer ends, please reply with the permission nodes given to those players, thanks!
Great plugin! I'm using this as a donator perk, i'm wonder if you can add the countdown timer, I can see lots of deaths because of this Lol. If not, is there a command players can use to check how much time they have left? I see there is a permission node for it but i can see the command D: (flyp.timeLeft)
Fly Payment 3.4 is out, just waiting for approval!
@MGbeenieboy
Please reply with your config in pastebin, and then I can help you with the setup.
If the config file is correct, then you must give the person the "FlyP.Fly" permission, which depends on which tier you configured.
For example, for Tier 1, you'd give the player "FlyP.Fly.1", then they'll be able to fly with the set costs you've configured.
No no, I have setup. tahat 10 seconds fly costs a beacon and 500xp. How can I buy this now in game?