CashFlow
CashFlow is an economy plugin that lets you create taxes and salaries that pay out at an interval you set. Compatible with iConomy 4, 5, & 6+, BOSEconomy 6 & 7, Essentials Economy 2.2.17+, and MultiCurrency. Permissions plugin optional but recommended - pick from PEX, bPermissions and PermissionsBukkit.
Requirements:
- Register (Versions 1.0.1 and up use Vault)
- An economy plugin - BOSEconomy, MultiCurrency, Essentials Eco, iCo4/5/6
- A permissions plugin - PEX, bPermissions, PermissionsBukkit
Features:
- Uses the Register API, so it is compatible with multiple economy plugins.
- Supports PEX, bPermissions, and PermissionsBukkit.
- Create multiple taxes with different amounts, intervals, and players receiving the tax (or no player receives the collected tax). Apply taxes to one group or many. Gives you the ability to add players to an "excepted players" list so if someone isn't going to play for a while you can freeze their tax without having to remove them from a group.
- Create multiple salaries with different amounts, intervals, and players paying out the salaries (or no employer). Apply salaries to one group or many. Add players to an "Excepted Players" list so you can freeze their payment if they're going to be away, without having to remove them from a group.
- Hits offline players.
- Set salaries and taxes to pay only to players who have been online within a certain number of hours.
- Supports non-player economy accounts.
Commands and Permissions
Tutorial
To Do:
- Commands to edit taxes (maybe).
- A little code cleanup.
- More permission nodes
- Percentage based salary
Trello Dev board
Visit the Trello board to see the current todo list for all projects.
You can comment and vote on any of the topics there.
All changes on the Trello board are in real-time.
If you decide to download this plugin please leave me a comment to let me know how it works for you so I can improve it! And if you like this plugin, please consider donating. It's a big incentive to continue this, and it helps me pay for things I need for school.
Will you also add items payouts in 2.0 ?
@xakiru
Player generated taxes / salaries has been asked before. Just haven't gotten around to doing a proper implementation of it due to how the plugin works in its current state. I think I was planning on adding it in 2.0... if not, then maybe in a future release.
@Mitsugaru
Thank you. Would it also be possible to look into an acceptance command for when someone tries to put a tax on you?
ie, [CashFlow] <Playername> has offered you a <taxname> tax with the rates of <amount> per <interval>.
and the player would have to type /tax accept <taxname> or /tax decline <taxname>
@xakiru
At the moment, no. I will see if it can be added in for 2.0.
@Mitsugaru
That seems to work! thank you!.
By the way, is there a way to disable the permission to set a tax on a group? I don't want my players putting high taxes on the default group or any other groups.
@xakiru
Can you test this bug fix version here for me and let me know how it goes: https://github.com/mveritym/CashFlow/downloads
@Mitsugaru
Thank you :). It seems I can manually add my name if I make one without a payee then edit the config,yml file to add it in. But I would prefer not to manually add players name. I'm also running Vault if that helps with anything.
@xakiru
Alright, I'll look into the issue. Sorry for the hassle.
@Mitsugaru
BOSEconomy
@xakiru
What economy system are you using?
When ever I try to make a tax I get
[CashFlow] 'Vladimire' not found.
/tax create MLTDT 15% 24 Vladimire
@ToddVee
String editing / custom localization support will come in release version 2.
hey,
it would be really nice if you change the message from "You have paid $xxxx in tax to xxx" to "You have paid 'amount' 'tax name' to 'tax'." Do you think its possible? I mean if this message comes it is quite obvious that you pay, but it would be more interesting what you pay. thanks =)
@MRCartm0n
Sorry for the late reply. Currently, the plugin only supports economy systems. I will consider adding in item support in the future.
@ToddVee
Good to hear.
Can this plugin also pay out items?
@Mitsugaru
thank you, the re-uploaded seems to work just fine! no message/money to pay if negative balance and no extra tax payments, thank you!
@ToddVee
You know what, I'm thinking that the time persistence is messed up then. I'm submitting a revised version that removes the CatchUp sequence. As I said before, it needs to be redone...
I've re-uploaded a new version on GitHub as well, in case you already downloaded that version: https://github.com/mveritym/CashFlow/downloads
@mitsugaru
after applying the new jar, an error occured that randomly occured before also: players must pay 1 tax 3 times:
18.04 03:07:06 [Server] INFO [Arbeiter] R3MiixXx: at one time? 18.04 03:04:12 [Server] INFO [PLAYER_COMMAND] R3MiixXx: I had to pay tax 3 times now lol 18.04 03:03:38 [Server] INFO [CashFlow] Paying tax Steuer 18.04 03:03:38 [Server] INFO [CashFlow] Buffered iterations + Rescheduled threads 18.04 03:03:38 [Server] INFO [CashFlow] Running CatchUp
It always happens after a server restart. usually, people pay tax every 15 mins. testing negative balance tomorrow, too late now =)
@Jdon278
I feel like the percentage tax should work. There is a flaw in your earlier post in the design of you economy in that it encourages users to have less money in order to avoid being taxed more. Also, by your increments, if someone were to hit 10k, they'd lose everything, which doesn't make sense.
Using a percentage based tax ought to adjust based on the players wealth.
And as for tiers, I'll might consider that in the future.
@ToddVee
I see, I didn't realize that iConomy actually supported negative account balances.
Try this version here and let me know how it goes: https://github.com/mveritym/CashFlow/downloads
@Mitsugaru
Are you going to add wealth based taxes any time soon ?