Inactive [ECON] CashFlow v1.0 - Taxes and Salaries [Register] [1317]

Discussion in 'Inactive/Unsupported Plugins' started by Perichor, Sep 10, 2011.

  1. Offline



    CashFlow is an economy plugin that lets you create taxes and salaries that pay out at an interval you set. Permissions plugin optional (supports PEX, bPerms and PermsBukkit). Compatible with iConomy 4, 5, & 6+, BOSEconomy 6 & 7, Essentials Economy 2.2.17+, and MultiCurrency.

    • Uses the Register API, so it is compatible with multiple economy plugins.
    • Now permissions optional.
    • 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 unless onlineonly is set to true.
    • More features coming soon! (see the to-do list)
    Stuff you need:
    • Register
    • An economy plugin - BOSEconomy, MultiCurrency, Essentials Eco, iCo4/5/6
    • A permissions plugin (optional) - PEX, bPermissions, PermissionsBukkit


    See the BukkitDev page for more information.

    To Do:
    • Add World Guard support.
    • Add option to jail players who don't have enough money to pay their taxes.
    • Thresholds
    • Commands to edit taxes (maybe).
    • A little code cleanup.
    • What else? I've sort of lost track. Leave a comment if you think something should be added.

    Pull requests welcome!

    Version 1.0
    • PermissionsBukkit support! Yaaay.
    • Updated Register -you need to download this *here* and drop it in your plugins folder.
    • Added automatic tax/salary enabling on plugin enable.
    • Made onlineonly mode separate for each tax/salary.
    • Added economy plugins as a softdepend.
    Version 0.4.2
    • Updated Register
    • Bug fixes.
    Version 0.4.1
    • Edited plugin.yml to fix "Bukkit is sad" error being thrown in 1.8.1.
    Previous Versions (open)

    Version 0.4
    • Added support for bPermissions.
    • Added onlineonly option.
    • Made permissions plugin optional.
    Version 0.3
    • Added the option to create a tax as a percent or a flat amount.
    • Added the option to set taxes/salaries on individual players (or a list of players) or a group (or list of groups).
    Version 0.2
    • Rounded taxes to two decimal places.
    • Fixed removeException method always returning "Player not found".
    • Fixed not being able to check for offline players.
    • Added /cashflow setworld <world name> (to fix above).
    • Refactored commands
    • Cleaned up message sending.
    Version 0.1
    • Initial beta release.

    If you decide to use this plugin on your server, please let me know what you think so I can improve it! And if you like this plugin, please consider donating. It's a big incentive and it helps me buy things I need for school.

    tombik and mctrue like this.
  2. Offline


    Lol first plugin I've seen support Pex before any permissions plugin.
  3. Offline


    I made it for the server I play on, and that uses PEX. :p
  4. Offline


    Sounds great Can we change taxes Per group ?
  5. Offline


    Do you mean can you set different taxes for different groups? You can definitely do that, just make two different taxes and /tax apply <tax name> <group name> to different groups. You can also make one tax and apply it to many groups.
  6. Offline


    Thanks i understand i am wanting to use this so leaders can apply diff taxs to users in certain groups depending on rank will begin testing soon and let you know how this goes looks like an awesome plugin
  7. Offline


    Thanks I really appreciate the feedback. :) Remember to give your leaders the cashflow.* node.
  8. Offline


    Do you think we could have items instead of currency plugins?
    ex: Payday! You earned one diamond!
  9. Offline


    I don't see why not, but I haven't really dealt with items before so it might take a little while. In that option would you want to be able to take away said item from another player - like if you make a salary of 1 diamond/week would you want the employer to lose 1 diamond/week/player being paid? This might work better as a separate but similar plugin.
  10. Offline


    Hmmmm. I like that idea....
  11. Offline


    Looks like a great plugin. I hope you support PermsBukkit soon.
  12. Offline


    Thank you :) PermissionsBukkit support is top of my list.
  13. Offline


    Is there a way to only tax or salaries to players that are active? or online?
  14. Offline


    Not at the moment but I'll add an "onlineonly: true/false" option to 0.4 if you'd like.
  15. Offline


    Updated to include an onlineonly option: set it to true/false in the config, or run /cashflow setonlineonly <true/false>.

    Also now permissions optional and supports bPermissions. :)
  16. Offline


    I'm in an interesting situation. Players on my server are able to avoid being taxed. Currently, the only way to get currency is by converting Gold to currency. By not converting their Gold Ingots to currency until they need to spend it, they will never have to pay taxes. Therefore, I've had to disable this plugin.

    Anyway, just wanted to give you my experience using it. It's great, just not for my server. Keep up the good work. [diamond][diamond][diamond]

    Edit: Reading up, I see someone else has suggested paying salaries in items. If you do decide to add that, could you make it work with taxes too? Then I could create a % tax on currency and % tax on gold ingots and ore, and have them both run at the same interval.
  17. Offline


    That is a tricky situation. My server was anticipating this problem, but thought that our players wouldn't actually do it (might now have to reconsider the situation!). Because this will probably crop up again and again for server owners, I will take a serious look at item-based taxes and salaries. If this was to be implemented, would you want the player who was receiving the tax/paying the salary to do so in the item itself, or currency worth the item's value? And thank you for the feedback, hopefully I can fix this for you.

    Edit: I suppose people would then just stash their ingots in chests and then you have no way of telling who's got what. Hmmm.

    Another edit: Do you have a jail system? I could add an option to jail players that don't have enough money to pay tax, or are getting taxed a tiny percent because they have no money. That's kind of a weird solution but it would be an incentive to change ore into money.
  18. Offline


    The jail system could be a good option. Do you can make it works with the Essentials jail system for example?
  19. Offline


    Yep, I'd probably start with Essentials because my server uses that, and then add support for jail plugins as people request them. The only difficulty would be keeping track of who needs to be jailed and checking if people coming online need to be jailed or not, but that probably wouldn't be too hard.
  20. Offline


    Haha I didn't even think about putting them in chests. Yep, it's a complicated situation.
  21. Offline


    @Kaseki What do you think of the jail system? And let me know if you have any clever ideas to fix this issue. :p
  22. Offline


    2554-09-21 07:56:58 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'tax' in plugin CashFlow v0.4.1
    at org.bukkit.command.PluginCommand.execute(
    at org.bukkit.command.SimpleCommandMap.dispatch(
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(
    at net.minecraft.server.NetServerHandler.handleCommand(
    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.Packet3Chat.a(
    at net.minecraft.server.NetworkManager.b(
    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(
    Caused by: java.lang.NullPointerException
    at mveritym.cashflow.PermissionsManager.hasPermission(
    at mveritym.cashflow.CashFlow.onCommand(
    at org.bukkit.command.PluginCommand.execute(
    ... 12 more
    Please fix for 1.8 :)Thank you.
  23. Offline


    @mctrue I'm having trouble reproducing your error. Can you give me some more information, like if you're using a Permissions plugin and if so, which one?
  24. Offline


    I'm test with PermissionsBukkit v1.2k and Permissions 2.7.4 Phoenix​
    my bad english sorry:D
    plugin list​
    "craftbukkit build #1165"​
  25. Offline


    Perichor, I was thinking--maybe the solution lies in a separate plugin altogether. Something that immediately converted an item to currency when picked up. I might have to start dabbling in plugin creation myself. Think I will work on it soon.
  26. found this kinda funny

    2011-09-21 15:11:55 [INFO] [iConomy - Celty] Enabled (63 ms)
    2011-09-21 15:11:55 [INFO] Payment method not found. Disabling plugin.
    but then again no not funny, it seems it cant find iConomy6 :(

    craftbukkit build #1170
  27. Offline


    @mctrue I managed to get the error on my own test server, it's just causing me some trouble because my computer takes forever to do anything in game so debugging is a little slow. The problem is a permissions error - for some reason, if I don't have the right permission, it doesn't let the onCommand function run any other functions, it just throws a null pointer exception. I seriously don't know why this is happening so this could take a day or two, but it will be fixed in 0.4.2.

    @Kaseki That could work, and if it was only for gold ingots it wouldn't be frustrating to users either. Good luck with the plugin. :)

    @hedich I need to update Register, there are already 2 tickets about it on the bukkit dev page, I'm getting to it I promise!

    I'm going to go ahead and add the jail option because I think that would be entertaining. Anyone have an opinion about maybe being able to create taxes based on worldguard regions?
  28. Offline


    How come i dont receive any cash ?
    This is my setup:
    But it wont give the players cash =/
  29. Offline


    @Jiggy I notice your intervals are really high, like 600 to 3600 hours. Have you waited long enough for the salaries to pay out? They don't pay the first time they're enabled.
  30. Offline


    I'll wait i like this plugin :D:D

Share This Page