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.
@Mitsugaru
ok, thx for looking at the code, i will try it if the 1.0.6. build is available !
update: First pay interval works, with a 12445,33123123 Tax. Trying just more users and 3-4 intervals more. I will report.
Update 2: More users works too, only the 13 numbers after the ',' are a little bit strange :) Now i let it works for 48 hours, looking at the server.log.
If the balance is "0", and taxes will pay, the amount in hand will not go into minus, stays at "0", and no error occurs. That's ok. Now i hope you will integrate Essentials Groupmanager Support, and than that plugin rocks :)
Thanks for the fast reaction,
Greetings,
Nero
Bukkit 1.0.1. RC1, Essentials 2.7.2, Vault 1.2.4
@PainKNero
I've tested with version 1.0.6, which has been submitted for approval, and it seems to do percentages correctly. The only major thing wrong is that its not displaying them in normal format... but that's a minor issue.
@PainKNero
I'll look into it when I'm free around noon-ish. I'll let you know how it goes.
Percentage Bug isn't fix in 1.0.5 ? Using Essentials 2.7.2 and Vault 1.2.4 Base to Calc (10%) was 32500,77
@craftopia
I know, I'm sorry I don't support it in the betas :\
If you really want to use it, the old release, v1.0.0, still has group manager support...
However, its stuck using Timers and the Register plugin rather than Threads and Vault...
Its up to you.
If you must know why I haven't had any luck with Group Manager, its because, for whatever reason, it errors out with a NoClassDefFound error on plugin start if the Group Manager plugin is not available. I don't understand why... :\ And because of this fatal exception, I haven't even bothered into looking into proper Group Manager integration.
Its almost as if I have to make two versions, one with Group Manager and one that supports all others... and I really don't like that idea. Honestly, it doesn't make sense to me considering I didn't even change that aspect (at least I don't think I did...).
If there's anyone who can get Group Manager working, without having it bork on startup, that'd be great...
If you could make this work with Group Manager you would be way cooler!
@G4meM0ment
Uh... what? o.O It already has support to read by groups based on Permissions...
The following command adds a permission group to a tax:
/tax apply group <taxname> <group1>
And extra groups are separated by commas. So:
/tax apply group tax Group1,Group2,Group3
Will apply the tax 'tax' to the three groups. Groups are based on you permissions plugin. The betas have been confirmed to be working just fine with PermissionsEX, provided that your permission config is correct, and that the group you try to add exists.
If a player isn't in a group, then they are in whatever is your default group. So, for example, if your default group is User, then:
/tax apply group tax User
Will do the tax 'tax' to anyone who doesn't have a group (because its the default group) as well as players who's only group is User.
Or perhaps I don't understand how you're trying to apply taxes/salaries to players/groups.
Also, the employer/receiver for taxes/salaries is already implemented. Its the last parameter when creating a tax/salary and is completely optional:
/tax create <taxname> <amount> <interval> [employer]
So, if you add a player / bank account to the employer parameter, they will receive all funds from taxes. This works the same way with salaries, where payment comes from the employer specified.
I'm sorry, but, I think I covered everything that you've mentioned. Everything is in the current release and the current betas. If you have any more questions as to how to utilize CashFlow, please ask.
There are How-To pages, they're just sorta hidden. I'll move stuff over to the pages and have links on the main page so that they're easier to find.
Hi, there is one thing VERY annoying on your plugin, I have to add every single player to a group, couldnt you just add a permissions or pex (that would be better :P) support which detects the group and use its permissions. Or a permissions which lets me decide which taxe or salary this group get/pay.
One more idea i got, pls add support to decide from where the money is payed and where it goes.
Thanks for you nice plugin :D
Julian
@masteryodaaa ...I'm sorry, I don't really understand how you want CashFlow to integrate with Factions...?
@tompage93 Ok, what are you trying to do and what have you tried?
@tompage93 You don't make groups in CashFlow. CashFlow uses the groups from a permissions plugin, such as PermissionsEX, bPermissions, or PermissionsBukkit. You just tell CashFlow what existing groups to apply a tax/salary to.
and i can´t groups make... help me please
ho can help me? The plugin does not work for me. I'm doing something wrong help me please
any suggestions how i can do? alot of people planing to claim areas when taxing and unclaim after :(
@masteryodaaa
This does not directly tie into either Factions or Towny. It reads groups from permission group plugins and taxes it based on valid Vault economy plugins.
Does Factions accounts get automaticlly taxed?
@blizzard158
Hmm, more than likely its CashFlow. I take it you're using the latest betas, right? The ones that use Vault? If not, try those.
If it is happening my beta versions, please post a ticket with a copy of the stack trace.
/salary apply group Time Player
I tried to set the Time salary to my Player group and it came up with "An internal error occurred while attempting to perform this command" So are my groups set up wrong or is it cashflow? Im using bpermissions and my groups were working last time i checked.
@mcapplbee
Uh, I'm sorry to say this, but I'm not good with supporting the original release version 1.0.0, which you are running.
Currently, I'm work solely on the beta updates, version 1.0.1 and up. Those do not use Register, they use Vault.
Unless you absolutely need either time persistence or Group Manager support, please use the betas. That way I can help you.
@Mitsugaru: Oh, sorry! I'm just blind. I got this stacktrace on plugin enable, but I'm running CI#1714 http://pastebin.com/NF3VauYH
@mcapplbee
Yes, it reads groups from your permission/group plugin system... provided that whatever you're using is supported by Vault (and isn't GroupManager, at least for the new beta versions).
You just do either of the following
/tax apply group <tax> <group>
/salary apply group <salary> <group>
And I think the groups are comma separated or space separated. I can't remember off the top of my head, sorry.
Can it pay based on rank/group?