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.
@G4meM0ment
1) Did it create the database file?
2) Does the plugin have write permission to the file?
Because the table ought to be created on startup if it does not previously exist.
If the above don't fix your issue, I will have a look at it when I'm not driving.
There is always the message:
2012-01-20 23:37:31 [WARNING] [CashFlow][SQLite] Error at SQL Query: [SQLITE_ERROR] SQL error or missing database (no such table: cashflow) 2012-01-20 23:37:31 [SEVERE] Could not pass event PLAYER_JOIN to CashFlow java.lang.NullPointerException at mveritym.cashflow.Listener.onPlayerJoin(Listener.java:33) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:265) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:129) at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:113) at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:39) at net.minecraft.server.NetworkListenThread.a(SourceFile:94) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
If a player joins.
Hey all,
I'll be submitting version 1.0.9 soon. PLEASE ugrade to it as it adds an internal updater, which will be used for consecutive versions. Most namely, for version 1.1, which I'm working on to have time persistence.
If you don't update to version 1.0.9, at the very least add the following to your config.yml:
version: 0.01
@G4meM0ment
Can you make a ticket and post your config.yml there. As well as any steps you've done.
@Mitsugaru
Ok, I use iConomy 6 i think.
@G4meM0ment
First, if its not paying out, you need to tell me that. Also, you need to tell me what economy plugin you are using, else I can't test and fix it.
Also, the config issue is:
1) Stated in the known caveats section since the betas: "Config reloading isn't implemented properly, so edits to the yaml file while the plugin is enabled will more than likely be lost. The in-game commands do not apply and will work fine."
2) Has/Will be fixed (potentially) for release 1.0.9.
I haven't had a chance to release 1.0.9 because lack of time to test some of the major internal changes. Time persistence is planned for 1.1.
@Mitsugaru
Ok but it dont works there is no message to the users. And it dont work at all.
One more thing to add: I want to change the config, because its much easier for me. If I try to now it will be just reseted to the state it was before.
@PainKNero
As I have stated before, the betas DO NOT have time persistence. So, if the server is restarted, the times for CashFlow are also restarted.
You're best bet, if you wish to use the betas, is to adjust your taxes/salaries into shorter intervals such that you know they will trigger automatically.
Yeah, that's what the /cashflow status was for, except it was reading out weird times :\ Which is why it currently only gives a generic status for enabled/disabled states.
I'll work on fixing that at some point because I'd like it as well...
Rest assured, the time persistence is of high importance. I just need time to work on it.
@G4meM0ment
Time intervals are in hours.
If a player is online, they will be messaged when/if the transaction completes.
Could you tell me if the first position of the interval is hours or days.
And please add a message for the user when he pay or gets money.
I have choosen a 12h interval for taxes, from which point it will count ? Last Server Restart ?
If server is restarted, the timer will reset and begins new at server restart time ?
At last night (noone online), it seems not to pay, a forced "tax fire" on console will work, paying on- and offlineplayers.
In further builds: Can i look at the countdown, how much time ist left till taxes / salaries will pay ?
Greetings,
Nero
@Mabbe7
Good to hear.
In other news, I'm almost done with the internal command handler restructure. For what its worth.
@Mitsugaru
Good its working perfectly
Thanks!
@Mabbe7
Actually, I'm going to go ahead and submit 1.0.8 now for approval for the fix. The internal stuff will be updated in the future.
@Mabbe7
Bleh, I see what I did wrong on that one. Give me a second to finish up something else and I'll push out 1.0.8.
I'm redoing the entire internal command handlers. Also making the help a bit more presentable.
@Mabbe7
I didnt see version 1.0.7 cashflow
but i received a message : Mayor dont have enought money to pay your salary. Mayor have full of money. (many billions).
Mayor its the employer.
@Mitsugaru
iconomy 6
@Mabbe7
Actually, I see where I goofed a bit. Try version 1.0.7, which I've submitted for approval. Let me know if that fixes your issue.
@Mabbe7
What economy plugin are you running?
@Mitsugaru
I think the plugins not working well because when I use /money to check the paid the total still the same. I receiving my salary but its not add to my accompt.
@PainKNero
Yeah, as I said, the formatting is incorrectly displayed. Should be easy to fix, just haven't bothered in favor to have it working and available sooner (had a very small break to work on it).
Uh, I don't do negative balances... not sure which, if any plugins support a negative balance... So, for safety, I treat available money as the only money to grab rather than a debt system.
And I'll try and work on Group Manager, but I really have had bad luck :\