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.
For those having trouble with SQLite database errors:
If you have MySQL available, try using version 1.12, which has MySQL support.
@G4meM0ment
If you are using Vault 1.2.5, you shouldn't need it. Try removing it to see if it is creating the conflict or not.
@Mitsugaru
http://dev.bukkit.org/server-mods/registertovault/ this is RegistertoVault, I dont know how secure it its, but it sounds good in the description.
@masteryodaaa
Alright. Good that you got it resolved.
It was som corrupt jars the same with logblock its now fixed Thnx
@G4meM0ment
Register to Vault? o.O I haven't heard of this. Do you have a link or something?
@Mitsugaru
I use a register to vault API brigde, may this is the problem, but everything else running with vault (or register) works fine. As specialy there is no error in the log. (Like before.)
I deleted the config once to reset cf because it didnt worked in versions before.
And I just downloaded newest Vault version.
@G4meM0ment
Well, IDK then. Our server runs the same config: PEX and iConomy 6. The latest version works fine. :\
@Mitsugaru
Iam admin I got permissions to do everything ( - '*')
@G4meM0ment
Did you check your group permissions?
Tax command requires: cashflow.tax
Salary command requires: cashflow.salary
The root cashflow command requires: cashflow.basic
In version 1.11 i cant use any commands, everytime there's the message how to use the commands. It doesnt matters which command I use.
@masteryodaaa
Looks like a Vault error... Did you put a .jar in or a .zip? o.O
Cashflow dosent load and not vault this suddenly happend it worked before what have happend? http://pastebin.com/7PN71B7P
CashFlow v1.1 reintroduces time persistence.
This has been submitted for approval.
@G4meM0ment
@G4meM0ment
I'm not talking about plugin group permissions. I'm not talking about the config.yml.
I am talking about filesystem permissions, from your operating system. Bukkit may have had permission to create the file, but I've had people tell me that it doesn't save to the database (on a different plugin)... and its because they don't check the database file's system permissions afterwards.
I have no idea what OS your server is running on. You need to check the file's permissions and see if there is both read and write access to it. If it is missing one, or both, you need to fix it and then test it again.
If by chance the file itself has both read and write, and access to it from the user that runs the Bukkit instance, and it still doesn't work, then that would be an error on my end....
However, if that was the case, then I would be getting WAY more people getting the same error.
Considering that this error is localized, and considering that you haven't checked the file's permissions yet, I'm thinking it is an issue of how your system is configured rather than the plugin at fault.
TL;DR
So, to reiterate, check the database.db file's permission set up (located in the CashFlow folder) and edit it to be proper: read and write access.
@Mitsugaru
add: I use PEX.
@Mitsugaru
I dont know which permissions file you mean, and asspeacily in the config is nothing less the salarys and taxes.
@G4meM0ment
What I mean is that does the plugin have file read/write to the database file. Because if Bukkit doesn't have permission to write to the database file, then it can't make any necessary modifications, such as adding the table that you're missing (which is always checked and added on load). Check the file permissions and make sure that Bukkit has read/write access.
MySQL has been considered and in the queue of many things to do... However, I do hope you realize that there are items of higher priority than MySQL, things such as getting time persistence, compatibility with economies, and other major optimization / bug fixes.
On another note, iConomy 6 has been confirmed to be working, which is why I asked for your config.yml setup in a ticket (only if it still isn't working), so as to not clutter the comment wall.
@PainKNero
Thanks, I try D: Its a bit difficult to juggle it all, especially now that classes have started and I have my capstone project to focus on.
I partially have the framework for time persistence now, and hopefully I'll be done with it tonight.
ok, you are very fast, my best dev :) Actually seems to be clean, tax and sals will pay, i will look at its behaviour tommorow again.
@Mitsugaru
1) Yes there is a database file, but its empty.
2) What do you mean by that? Is that a code in the config? Or to the database. May you could add mySQL support.