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

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

  1. Offline

    Perichor

    [​IMG]

    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.

    Features:
    • 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
    Install:

    Download: http://dl.dropbox.com/u/10839588/CashFlow.1.0.jar

    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.
    Source:

    https://github.com/mveritym/CashFlow

    Pull requests welcome!

    Changelog:
    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.

    [​IMG]
     
    tombik and mctrue like this.
  2. Offline

    Fiddy_percent

    I cant get this plugin to work :(
    I have:
    Permissions bukkit
    latest version
    Register
    Iconomy 6
    -------
    Also can you show examples of how to use the commands and such)

    ------
    Here is my config:
    Code:
    taxes:
        list:
        - Citizen
        - Peasant
        - Unnewbie
        Citizen:
            taxInterval: 24.0
            receiver: fiddy_percent
            tax: 10%
            payingGroups:
            - Citizen
            lastPaid: 2011-10-17T11:47:44.891Z
            onlineOnly:
                interval: 0.0
                isEnabled: false
            payingPlayers:
            exceptedPlayers:
        Peasant:
            taxInterval: 2.0
            receiver: Fiddy_percent
            tax: 2%
            payingGroups:
            - Peasant
            lastPaid: 2011-10-17T11:47:44.934Z
            onlineOnly:
                interval: 0.0
                isEnabled: false
            payingPlayers:
            exceptedPlayers:
        Unnewbie:
            taxInterval: 24.0
            receiver: Fiddy_percent
            tax: 8%
            payingGroups:
            - Unnewbie
            lastPaid: 2011-10-17T11:47:44.947Z
            onlineOnly:
                interval: 0.0
                isEnabled: false
            payingPlayers:
            exceptedPlayers:
    salaries:
        test:
            lastPaid: 2011-10-17T13:01:58.641Z
            employer: 'null'
            onlineOnly:
                interval: 0.0
                isEnabled: false
            paidPlayers:
            - fiddy_percent
            paidGroups:
            salary: '11'
            exceptedPlayers:
            salaryInterval: 0.01
        list:
        - test
    world: world
    tried it with and with out the %
     
  3. Offline

    zazaramo

    Perichor It is still not working i get this error

    Code:
    15:50:32 [INFO] [CashFlow] Paying salary server
    15:50:32 [INFO] [CashFlow] Paying salary server
    15:50:32 [SEVERE] Exception in thread "Timer-8"
    15:50:32 [SEVERE] Exception in thread "Timer-9"
    15:50:32 [SEVERE] java.lang.NullPointerException
    15:50:32 [SEVERE]       at sun.misc.FloatingDecimal.readJavaFormatString(Unknown
     Source)
    15:50:32 [SEVERE]       at java.lang.Double.parseDouble(Unknown Source)
    15:50:32 [SEVERE]       at mveritym.cashflow.SalaryManager.paySalary(SalaryManag
    er.java:352)
    15:50:32 [SEVERE]       at mveritym.cashflow.Taxer$SalaryTask.run(Taxer.java:78)
    
    15:50:32 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    15:50:32 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    15:50:32 [SEVERE] java.lang.NullPointerException
    15:50:32 [SEVERE]       at sun.misc.FloatingDecimal.readJavaFormatString(Unknown
     Source)
    15:50:32 [SEVERE]       at java.lang.Double.parseDouble(Unknown Source)
    15:50:32 [SEVERE]       at mveritym.cashflow.SalaryManager.paySalary(SalaryManag
    er.java:352)
    15:50:32 [SEVERE]       at mveritym.cashflow.Taxer$SalaryTask.run(Taxer.java:78)
    
    15:50:32 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    15:50:32 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    It says ''paying salary server'' but i dont get anything

    GOD finally fixed!
    for the ppl with errors/help go here

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  4. Offline

    Perichor

    @Fiddy_percent When you say it doesn't work, what do you mean? If you want help with commands there's a lot of info on the BukkitDev page.

    @zazaramo Yay it's finally working for you! How did you fix the error you posted above?
     
  5. Offline

    Fiddy_percent

    It doesn't work. I set up taxes apply them to groups and enable the cashflow and nothing happens. no errors either
     
  6. Offline

    Perichor

    Have you waited enough time for them to run? They don't run the first time you enable them, the interval passes first.
     
  7. Offline

    zazaramo

    @Perichor
    The problem with the 2 pay outs was that i did /cashflow enable AND /cashflow restart then it will pay 2 times.
    after i had read the tutorial above from me posted.
    I redownloaded cashflow but this time only did /cashflow enable
     
  8. Offline

    Fiddy_percent

    yeah Ive waited days for a .01 hour set and a normal 24 hour set (few days waiting on that)
     
  9. Offline

    Perichor

    What's your world name? Have the "lastpaid" values updated since the config you posted above?
     
  10. Offline

    Stone_Tigris

    Just a quick one to say great plugin! Love how people can do jobs fot the rich people on my server and get money!
     
  11. Offline

    Perichor

    Thanks for the feedback! :)
     
  12. Offline

    homeworlder_

    Im confused. There arent any example config.yml's so i want to know, is my code ok ?


    Code:
    taxes:
        list:
        - default
        - Noble
        default:
            taxInterval: 24.0
            receiver: falconmhir
            tax: 20
            payingGroups:
            - default
            lastPaid:
            onlineOnly:
                interval: 0.0
                isEnabled: false
            payingPlayers:
            exceptedPlayers:
        Noble:
            taxInterval: 24.0
            receiver: falconmhir
            tax: 20
            payingGroups:
            - Noble
            lastPaid:
            onlineOnly:
                interval: 0.0
                isEnabled: false
            payingPlayers:
            exceptedPlayers:
    world: world1
    By the way, im using PermissionsEx and iConomy (dunno if that matters)
     
  13. Offline

    Perichor

    @homeworlder_ Looks good to me, is it not working? Just be careful you don't have any tabs in there.
     
  14. Offline

    austin101

    None of my players are getting paid and I used /cashflow restart and also restarted my server.

    here is my config http://pastebin.com/idsTbZjK

    Normally my salary intervals are at 5 minutes but I did 30 seconds for testing purposes

    Thanks.
     
  15. Offline

    homeworlder_

    K, but i just want to ask you some stuff since i just figured out that youre one of those that actually replies :D

    1. Is it possible to make them pay taxes to multiple people ?
    2. could you put up an example config, for taxes only, salaries only, and a mixed ?
    3. PayingGroups does ??? if that is the rank that has to pay, is the "title" for each tax/salary just the name of the tax/salary itself :p ?

    Please reply ! :D
     
  16. Offline

    mindystorm

    at the top its says permissions is required but under required permissions is optional? does it require permissions?
     
  17. Offline

    Perichor

    Are you getting any errors in the console? If not, can you post the stacktrace you get when your server starts up for me?
    1. Not at the moment, no.
    2. Sure, might be a couple days.
    3. PayingGroups is a list of the names of groups that have to pay/are being paid. Yep, the "title" is just the name; I use it to identify individual taxes and salaries in the config file.
    Totally optional, but for full functionality you need a permissions plugin (PEX, bPerms, PermissionsBukkit). Thanks for pointing this out! I have corrected the post.
     
  18. Offline

    ljrox

    Hello,

    I've a problem with the plugin :

    I've Cashflow v1.0, Register v1.5 and bukkit 1337.

    Everyone can help me ?

    Thanks. Ljrox (French)
     
  19. Offline

    fin88

    Here the same Problem. :(
    But, i'm using Bukkit v1344.
     
  20. Offline

    dadaking

    I use craftbukkit 1337, i've CashFlow 1.0 and register 1.5



    a few time later



    There is my config file

    Code:
    taxes:
        list:
    salaries:
        list:
        - chomeur
        - citoyen
        chomeur:
            lastPaid: 2011-11-04T14:47:33.643Z
            employer: 'null'
            onlineOnly:
                interval: 1.0
                isEnabled: false
            paidPlayers:
            paidGroups:
            salary: '15'
            exceptedPlayers:
            salaryInterval: 1.0
        citoyen:
            lastPaid: 2011-11-04T15:20:33.644Z
            employer: 'null'
            onlineOnly:
                interval: 1.0
                isEnabled: false
            paidPlayers:
            - dadaking
            - Gallia05
            paidGroups:
            salary: '10'
            exceptedPlayers:
            salaryInterval: 1.0
    world: world
    Someone already have this problem?

    Thanks for help ;)
     
  21. Offline

    dadaking

    Nobody have informations about the build of this plugin?
     
  22. Offline

    w7gamer

    I can't get this to do anything at all, have bpermissions and iConomy and all permissions but always get denied saying I lack permissions to use it.
     
  23. Offline

    Lookatmego

    hey dude when i run this plugin it creates the config and players yml but they both empty like the config just has:

    Example:
    list:


    thats it and players is empty..any idea?
     
  24. Offline

    monir

    Abonded?
     
  25. Offline

    Hydrosis

    Can you add a feature to pay through online time? That way, people aren't forced to log on to the server for their payment, but they still will be taxed 30% a week, whether they've been online or not.

    Basically, I want to pay the people who regularly play, and not pay the people who may use another account as a "bot".
     
  26. Offline

    dadaking

    I try to contact him 1 month ago, but nothing ... So i think he abanded his project. :(
     
  27. Offline

    monir

    Can somebody please pick it up This plugin is verry needed for many server owners
     
    odielag likes this.
  28. Offline

    Hydrosis

    Yeah, this plugin can be really useful to my economy.
     
  29. Offline

    chrisgun

    ToDo: Language Support

    Please :D
     
  30. Offline

    monir

    please pick it up again
     
  31. Offline

    PainKNero

    Code:
    15:34:06 [INFO] [CashFlow] Paying tax DerZehnte
    
    15:34:06 [SCHWERWIEGEND] Exception in thread "Timer-7"
    
    15:34:06 [SCHWERWIEGEND] java.lang.NumberFormatException: For input string: "6424,67"
    
    15:34:06 [SCHWERWIEGEND] at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
    
    15:34:06 [SCHWERWIEGEND] at java.lang.Double.valueOf(Unknown Source)
    
    15:34:06 [SCHWERWIEGEND] at mveritym.cashflow.TaxManager.payTax(TaxManager.java:335)
    
    15:34:06 [SCHWERWIEGEND] at mveritym.cashflow.Taxer$TaxTask.run(Taxer.java:68)
    
    15:34:06 [SCHWERWIEGEND] at java.util.TimerThread.mainLoop(Unknown Source)
    
    15:34:06 [SCHWERWIEGEND] at java.util.TimerThread.run(Unknown Source)
    If i put "Tax: 10%" it will crash, without that percentsign it works ! The input string 6424,67 above was exactly the 10% from the amount of the player, but the rest won't work.
     

Share This Page