Inactive [ADMN/ECON] PayDay v0.3.1 - User payouts by group (iConomy) - automated - synchronization[1000]

Discussion in 'Inactive/Unsupported Plugins' started by TZer0, Apr 10, 2011.

  1. Offline

    TZer0

    Check this plugin instead: http://dev.bukkit.org/server-mods/payday/

    Support for this plugin has been discontinued. If you wish to take over, please contact me.
    "It is pay day."
    -Dungeon Keeper 2

    Note: I'm going to rewrite/refactor my plugin once I get better (having a rather interesting fewer right now). This may take some time, but it will be worth it. Once this is done, the plugin will be released on bukkitdev.

    Note 2: I think that I will make a system that uses permission-nodes instead.


    Version: 0.2.10
    Downloads:

    Jar (Github),
    Jar (Dropbox),
    Source (GitHub)

    old (iConomy 4): jar(Github)
    old (iConomy 4): jar(Dropbox)

    Features:
    • Automated paydays!
    • Allows you to administrate your users' income. (allows negative income!)
    • Separate groups for players - easily imported from Permissions. Use worldconf to choose worldname.
    • Lots of, lots of aliases!
    Dependencies:
    Permission-nodes:
    Commands (all start with /pd for in-game help - say /pd):

    Remember: if a parameter contains spaces, surround it with quotes, that is: this chracter: "
    Show Spoiler

    • For non-admins: /pd shows the time to the next payday.
    • time - for admins: shows the time to the next payday.
    • checkerrors - checks for errors in the config-file
    • players [#] - shows number # page in the list of players
    • groups [#] - shows number # page in the list of groups
    • payday - pays everyone their money, won't run if checkerrors fails
    • payday [#] - same as above, but does it # times. (can be run for -1 times etc.)
    • set group name value - creates a group with earns value per payday
    • set player name groupname - assigns a player to a group
    • mv groupname1 groupname2 - moves all players from one group to another
    • delete player/group name - deletes a group/player
    • searchdelete player/group name - wildcard delete (may delete multiple entries, this is a powertool and should be treated as such)
    • sync [overwrite] - imports players and groups from iConomy and Permissions, if overwrite is given, players lose their current group and get a new group from Permissions. Group-names are also added with an income of 0 if not present.
    • recurring - see how to set up recurring payments
    • onlinemode [f/t] - only online players get paid.
    • lastperiodmode [f/t] - only players who have been online in the last period get paid, overrides onlinemode.
    • interest [value] - sets or displays interest (it is in percent, the amount paid will be (value/100)*money_in_account at each automated payday). Interest is paid out to ALL accounts, not only those registered in PayDay.
    • worldconf [worldname] - sets or displays what permissions-configuration is to be used in PayDay.
    • message [message] - sets or displays payday-message.
    • Aliases:
      • player = pl,
      • players = pl
      • groups = gr
      • group = gr
      • checkerrors = ce
      • payday = pd
      • set = s
      • delete = d
      • move = mv
      • sync = sy
      • overwrite = ow
      • sd = searchdelete
      • recurring = rec
      • onlinemode = om
      • time = t
      • lastperiodmode = lpm
      • interest = i
      • message = msg
      • worldconf = wc (oh wow! :p)
    Player names are CASE SENSITIVE, group names are CASE INSENSITIVE and for simplicity - I recommend using /pd sy or /pd sync



    How to set up recurring payments
    Show Spoiler

    Note: this is a bit untested but should work, please report any bugs ASAP
    The command is /pd rec mode arg
    There are 3 modes:

    deactivated
    Alias: d = deactivated

    Deactivates recurring payments
    usage: /pd rec d

    relative
    Alias: r = relative
    Sets recurring paydays relative to the current time. For instance: /pd rec r 10:1:3 will set paydays every 10 min, 1 hour and 3 days (or 263400 secs).
    /pd rec r 1 will set a payday every minute
    usage: /pd rec r minute:hours:days

    static, usage: /pd rec static (hour,day,week,month)
    aliases: h = hour, d = day, w = week, m = month, s = static
    Static will always happen on the first minute of the hour, month,
    day or week, depending on what you choose.
    Example: "/pd rec s d" sets the recurring payments to happen every day.

    Q&A
    Ohnoes, I've broken my settings without knowing it and then set up a recurring payday, what should I do?
    Don't worry: the system will tell the console and anyone who has the "payday.admin"-permission that something has gone wrong and prompt them to run /pd ce to fix things.


    Tricks:
    • /pd s gr epicgroup 10000 = /pd set group epicgroup 10000
    • /pd s pl TZer0 epicgroup = /pd set player TZer0 epicgroup
    • /pd pd = /pd payday
    • /pd d gr epicgroup = /pd delete group epicgroup
    Changelog:
    • v0.3.1
      • Bug fix related to changes in code due to adding Essentials-support.
    • v0.3
      • Added customizable messages.
      • Starting to add essentials-support (experimental version included, don't try this unless you're adventurous)
      • Fixed issues involving dots in names
    • v0.2.10
      • If an account holds negative amount of money after a PayDay, it is set to zero instead.
    Previous changes (open)

    • v0.2.9
      • Interest
      • Customizable world-name.
    • v0.2.8
      • Fixed upper and lower case-issues
      • Added handling of quotes
    • v0.2.7
      • Fixed /pd time for static modes.
    • v0.2.6
      • Let the admins know how long payday has been failing so that they can easily compensate the users' losses and how long ago the last successful payday was.
      • Payouts for people who have been online in the last period.
      • Commands which allow players and admins to see how long it is to the next payday (/pd for normal users, /pd t or /pd time for admins)
      • Undo and multi-payday
      • Removed player or group-payday.
    • v0.2.5
      • Removed a debug-message and a call to a deprecated function.
    • v0.2.4
      • Removed a debug-text.
    • v0.2.3
      • Onlinemode - enable to only pay people who are online.
    • v0.2.2
      • Re-enabled sync!
    • v0.2.1
      • iConomy 5, deactivated sync
    • v0.2
      • Recurring payments!
    • v0.1.6
      • Added negative payouts
    • v0.1.5
      • Fixed what v0.1.4 should've fixed.
    • v0.1.4
      • Fixed bug when running without Permissions.
    • v0.1.3
      • Foolishly discovered that I should've blacklisted "nation-" as well.
    • v0.1.2
      • Fixed /pd players 2+ giving an error, /pd ce now gives warnings when seeing accounts starting with "town-" (also blacklisted when importing), wildcard delete added.
    • v0.1.1
      • Fixed possible sync issue.
    • v0.1
      • Initial release.



    Q&A
    Show Spoiler

    Q: Do I get money while I'm offline?
    A: If online-mode is off (default), yes.

    Q: When is <feature> going to be implemented?
    A: I go for the "release it when it is done" way of doing things and I generally don't schedule things, if I say that I'll do it - it will be probably done within 24 hours, if I say it goes on the todo-list, expect some waiting-time. Currently, I'm rather busy so I only update the most important things or things which are really simple to add but add lots of value.


    Todo:
    • [medium] Player-owned companies where players pay other players for doing jobs etc. with easy administration + ranks.
    • [low/maybe] Might add BOSEconomy-support. BOSEconomy kind of has this including sync - but I might add this just for the sake of portability.
    • [low/maybe] Essentials Eco-support?
    Please leave feedback and any errors which should happen to pop up, but read Q&A before you ask a question.
     
    DoomLord likes this.
  2. Offline

    TZer0

    First of all, I want to apologize for not having answered any posts, I've been on vacation without internet-access :/

    That does not mean that I've not been working. Expect some patches soon.

    Right, onto answering posts! :)
    Hmm, not seen this before. I'll check it up.
    I'll consider it - added as a possible todo.
    The recurring-effect is real-time, not ingame-time (updating post to reflect this.)
    Sounds like a great idea. Will do!
    First idea: sure, I can do that.
    Second idea: already suggested, I'll probably get working on that soon.
    Sure, will be added in the next release.
     
  3. Offline

    Alexion

    Thank you for your answer. A date for the next release?
     
  4. Offline

    Shooty

    Can't you make a simple payday ? Because i no understand how your plugins it's works, i'v just want the same pay for all my players so you can't add just an "simple pay" ?? @TZer0

    And i'm french so if you can make the sentence was editable would be cool :)
     
  5. The Sync is seriously bugged, when I sync, two groups are always ignored (the players don't get on the payday list).
    I tried this again on my local server, with the exact same permission groups & user list. This time, there is missing 75% of the users on the payday list, i seriously don't get it :/ I've tried everything ...
    I can't understand why.

    (using permission, world)
     
  6. Offline

    TZer0

    Strange. May I see your config?
     
  7. Offline

    Legionarius

    I can confirm that there are several problems. Sync does not sync properly and players are often assigned 'none' when they should not be. Pastebin : http://pastebin.com/Cy6fjb2a
     
  8. Offline

    Tobytheminer

    i can't get it to automaticly give payday.

    Horia0310,
    Member Since:
    Apr 7, 2011


    How often do I receive the income?​

    You can set it by changing the config and goto the "mode"

    well thats what you write in "mode" the time in minuts

    Is this only for Essentials or is it for Permissions

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

    wiigor

    Hi there, good job on keeping improving this plugin, it is getting better and better. One day it will be perfect.

    I found some other errors:

    Code:
    Server: /pd payday
    CONSOLE: Checking for errors.
    CONSOLE: Owner doesn't have an account!
    CONSOLE: Errors found, fix them before running payday
    
    I see that you have replaced the dots in the config file with <DOT> tags :)

    I have included the config.yml and I see that there are two users:

    one user named owner<dot>
    and one user named owner without a dot.

    hopefully u can find the problem
     

    Attached Files:

  10. Offline

    TZer0

    Mh, you need to remove the faulty entry! cpt. (newline) omega.

    I will check for more bugs - obviously.
     
  11. Offline

    TZer0

    The syncing is dependent on users registered in the economy.
     
  12. Offline

    noahwhygodwhy

    was setting it up for the first time, here's the error:
    Code:
    19:33:39 [SEVERE] java.lang.NullPointerException
    19:33:39 [SEVERE]       at java.util.AbstractCollection.toArray(Unknown Source)
    19:33:39 [SEVERE]       at tzer0.PayDay.PayDay$Payer.run(PayDay.java:876)
    19:33:39 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    19:33:39 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    19:34:01 [SEVERE] java.lang.NullPointerException
    19:34:01 [SEVERE]       at java.util.AbstractCollection.toArray(Unknown Source)
    19:34:01 [SEVERE]       at tzer0.PayDay.PayDay$Payer.run(PayDay.java:876)
    19:34:01 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    19:34:01 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    19:34:24 [SEVERE] java.lang.NullPointerException
    19:34:24 [SEVERE]       at java.util.AbstractCollection.toArray(Unknown Source)
    19:34:24 [SEVERE]       at tzer0.PayDay.PayDay$Payer.run(PayDay.java:876)
    19:34:24 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    19:34:24 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    >
    and the config:
    Code:
    message: It's Pay Day! Do /money to see your balance!
    failedSoFar: 0
    onlinemode: true
    lastFailed: false
    interest: 0.005
    players:
        peppo456: group1
        noahwhygodwhy: group1
    modetype: r
    essentials: false
    lastperiod: false
    groups:
        group1: 1
    mode: '1'
    
    any ideas?
     
  13. Offline

    TZer0

    Sorry for not replying earlier. Fixed!
     
  14. Offline

    noahwhygodwhy

    oh, wow, fixed? that's a lot faster than it usually is, thanks.
     
  15. Offline

    Shooty

    Can't you make a simple payday ? Because i no understand how your plugins it's works, i'v just want the same pay for all my players so you can't add just an "simple pay" for pay all players without any config ?? @TZer0

    And i'm french so if you can make the sentence was editable would be cool :)
     
  16. Offline

    TZer0

    You can edit the sentence already.

    Simple payday would either adding all players to one group or setting the income of all groups to the same value.
     
  17. Offline

    Shooty


    i'v already try that but players was added to "default" automatically and my players no receive their payday (i have set for permissions group):

    Code:
    failedSoFar: 0
    modetype: s
    mode: d
    interest: 0.0
    onlinemode: true
    lastFailed: false
    worldconf: world
    players:
        Yannveuxtu: default
        paulo5: default
        Convixion: default
        D0rnick: default
        SpaceMonkey68: default
        elfofnight750: default
        Smach56: default
        AlexLeyenda: default
        0808julien: default
        kevin787: default
        Silver_shadows: default
        AxelAllain: default
        michellegrand: default
        mcdoman: default
        urumu: default
        giloub13: default
        redbry: default
        Abiran: default
        Elbryan54: default
        SpiderZz: default
        noobkillerGeo: default
        Kouki: default
        bobalawi: default
        Noxiko: default
        magicarno: default
        Kody_Steakay: default
        Woodix: default
        karimasri: default
        picatchou8: default
        TimWik: default
        Ollylotus: default
        RWD258: default
        ChineCRAFT: default
        antoniocool: default
        jojo700: default
        Erynthia: default
        hunter_creepers: default
        Wosok57: default
        hasu31: default
        Drake47: default
        Nuuke: default
        Salvatores: default
        Palhu1998: default
        Erevlys: default
        jonathandupont: default
        guigui9711: default
        QuantyK: default
        Electron750G: default
        LordWorld: default
        Kaineng: default
        ReyzhVizion: default
        paulo39: default
        Pandidikaze: default
        daftpolo: default
        Darki66: default
        minatodudd: default
        Zork54: default
        gnarque: default
        DarkElite08: default
        D4zR0: default
        darlok2009: default
        vastolord93: default
        greite: default
        Drimer_1er: default
        DJArnoow96: default
        Skrullman: default
        wizoud: default
        gat2: default
    groups:
        visiteur: 3
        voyageur: 3
        vipvoyageur: 3
        citoyen: 3
        vipcitoyen: 3
        mage: 3
        vipnobleconseiller: 3
        nobleconseiller: 3
        vipconseiller: 3
        chevalier: 3
        conseiller: 3
        vipchevalier: 3
        vipchevaliernoble: 3
        noble: 3
        chevaliernoble: 3
        vipnoble: 3
        default: 0
    lastperiod: false
    
     
  18. Offline

    TZer0

    Well here's your problem :p

    As to why everyone get default.. are you using global configs or world-configs?
     
  19. Offline

    Shooty

    I use world config and storage config for had same permissions on all world
     
  20. Thanks, so payday is not syncing hidden account :( (I just want to hide them from the /money top command in fact)
     
  21. Offline

    SilencShadoW

    Hey Guy,
    your plugin is just awesome but u got 1 big problem, its not work with PermissionsBukkit ... its not get the groups out of that ... and i realy realy need this plugin ... is there a way to fix it?
     
  22. Offline

    werner291

    Hi! Just installed your plugin. Works nicely! But can we also setup payday for individual players instead of creating a group for every player?

    EDIT: It keeps telling me the last payday failed and i have to say" /pd ce". It tells me there are no errors, and keeps telling me the payday failed.
     
  23. Offline

    esret

    here is a error message pls help
    2011-08-20 19:53:37 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'pd' in plugin PayDay v0.3.1
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoClassDefFoundError: com/iConomy/system/Accounts
    at tzer0.PayDay.PayDay.onCommand(PayDay.java:197)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    Caused by: java.lang.ClassNotFoundException: com.iConomy.system.Accounts
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoClassDefFoundError: com/iConomy/system/Accounts
    at tzer0.PayDay.PayDay.onCommand(PayDay.java:197)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    pls help
    i Cant use /pd sync [name]
     
  24. Offline

    TZer0

    "/pd sync" syncs everything, but it won't overwrite old players.

    What are you using when it comes to the other plugins?
    Config and versions please.
     
  25. Offline

    werner291

    Just reinstalled the plugin, it doesn't give me errors anymore.
    When do my players get paid if I say "/pd rec s w"?
    When I say "/pd rec r 0:0:1", and I ask "/pd time" it tells me "No recurring paydays setup :("

    CB 1060

    EDIT: just discovered you can do it manually, I'll do that
     
  26. Offline

    Shooty

    @TZer0 Can't you just add a feature for just pay all the players WHO online in the day ? Because if online-mode is set on true, just the players WHO are online in the moment of payday was paid, but for the other, nothing :(. So i just want my players receive their pay online if their a online 1time in the day.
     
  27. Offline

    TZer0

    Set it to pay daily and activate online mode?
     
  28. Offline

    Shooty

    ²²²²²²²²²
    No if i do that, only the players was connected AT the moment of payday receive payday
     
  29. Offline

    TZer0

    Activate lastperiodmode too!
     
  30. Offline

    Shooty

    Ok :) what is 'lastfailed' ? and "failedSoFar' oO
     

Share This Page