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.
@GeneralShep
You are not using the latest beta 1.186. Rather, you are using the really old release version 1.0.0. Make sure you download from either the Files tab or from the Recent Files section in the sidebar here to ensure you are getting the latest version, as the Download button links to the old release.
@Crazydoub
Uh... it ought to be working for 1.2.4... what is your error? Please check your version as it sounds like you might have the same issue as above... :/
Hi, could you please update it to 1.2.4... It's the only serious plugin fox taxes.. Thks
Getting this error while using the latest 1.2.4 RB
2012-03-28 23:54:34 [SEVERE] Error occurred while enabling CashFlow v1.0.0 (Is it up to date?) java.lang.NoClassDefFoundError: org/bukkit/event/Event$Type at mveritym.cashflow.CashFlow.onEnable(CashFlow.java:41) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232) at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:374) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:361) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.ClassNotFoundException: org.bukkit.event.Event$Type at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 11 more
I get "An internal error occured while attempting to perform this command" anytime I try to use it.
http://pastebin.com/nvbJeeB9 - PEX permissions
I'm also using the most recent minecraft.jar as well as bukkit v1.2.4 R0.2, #2117. I do have the latest version of vault installed.
@Mitsugaru
I did. I made a group called "Global" that everyone is in and I applied it. Even when I /salary fire it it doesn't work.
@TheFlamingBurger
IDK, did you apply the salary to any groups?
Make a ticket and post your config.yml in it so that I can see what your setup is.
I set up a salary for every 0.25 minutes for $50. It is not working. Am I doing something wrong?
@badda2k
Well, its just letting you know when something is happening.
That was there when I first joined the project and I haven't bothered to remove it.
Is it supposed to spam the console with "2012-03-15 18:26:26 [INFO] [CashFlow] Paying salary Test"? :S
@S3thc0n
Exceptions is already there.
And I think you meant to request percentage based salaries as we already have percentage based taxes.
Really like this, think I gonna add it support for it in my town plugin when I code it. 2 things: -really do percentage based taxes -there should also be exception lists for every tax set up, so my mayors can choose not to charge someone for a while
@dropkickdragout
Alright, glad you got it working.
@Mitsugaru
ack, i apologize for that last post, i did manage to get it working this time around...somehow it reverted to "use: false" after i cnaged it, mustve forgot to save ^.^ thank you for all your help!!!!!
@dropkickdragout
Make a ticket and post your config.yml for CashFlow.
@Mitsugaru
Ok i have good news and bad news...good news is that i populated the mysql database. the bad news is that when i fire the salary it sill doesnt pay out :/
@dropkickdragout
Well, can you not go back to your MySQL database?
Maybe the plugin does have read/write permissions to the database file? Is it just for that command or does it also error out when a player joins?
@Mitsugaru
the error occurs when i run "/cashflow addplayers world"
all my database.db contains is "SQLite format 3"
I'm thoroughly confused at this point (its still happening with 1.186)
@dropkickdragout
Is that a command causing that or something? Or is that on player login? When does that occur?
Could you just make a ticket with your database file?
Nevermind, I see what I missed.
Try version 1.186 here: https://github.com/mveritym/CashFlow/downloads
@Mitsugaru
I deleted every trace of cashflow from my server, uploaded the new .jar. unfortunatly its still returning
"17:19:51 [WARNING] [CashFlow][SQLite] Error at SQL Query: [SQLITE_ERROR] SQL error or missing database (table cf_cashflow has 3 columns but 1 values were supplied)"
when i try to add players. :/
if it works for you, it has to be something on my end thats messed up. :/
@dropkickdragout
The database wasn't the issue. I was not using the bPermissions API correctly for getting users/groups. I have tested it and it works with bPermissions now. Submitted version 1.185 to BukkitDev for approval. If you wish, you may download the latest from GitHub:
https://github.com/mveritym/CashFlow/downloads
Remove your SQLite database file and either start fresh or you may go back to MySQL if you wish.