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

    Those values in the config-file? Those are used to track how many failed automated paydays have gone by and report it to admins.
     
  3. Offline

    Shooty

    Ok lastperiodmode don't work...
     
  4. Offline

    Legionarius

    Since permissions3 is shit for performance now, can we get some PEX love up in here?
     
  5. Offline

    TZer0

    Mh, ok, I'll try to do something about that, that is, using the old system or perhaps migrate to the official one propagated by the bukkit-team.
     
  6. Offline

    Legionarius

    PEX has built in compatibility with perms2 and superperms. :)
     
  7. Offline

    The.Kraken

    This plugin has great functionality and looks promising.

    So if you activate pay daily, online mode, and last period mode: Users who get on at least once in the day will get paid, even if they are not online during pay distribution, is that right?

    Also, any plans on making it compatible with superperms/bpermissions?
     
  8. Offline

    TZer0

    That this correct.

    I'm going to check up everything related to syncing with how the different permissions-plugins are laid out and go for code which covers the majority of them - hopefully all.
     
  9. Offline

    Legionarius

    bperms would be ideal!
     
  10. Offline

    G4meM0ment

    How to import my Permission changes to payday I dont want to write all my changes a next time in payday...
     
  11. Offline

    ZombieRampage

    Very nice mod here. Some things that would be nice. Multiple groups aggregate pay for all of those groups. Groups have separate paydays (time periods). i.e. Some groups get a daily pay, and some get paid hourly for playing.

    Thanks for your hard work.

    EDIT: Oh, and can you just list the pay period in seconds. We all have a calculator and it would be just one variable to mess with, I've got some buggy results when putting in something like 0:1:0 or 0:0:10. Maybe I'm doing something wrong (probably).
     
  12. Offline

    SilencShadoW

    Hey Guy,
    can u build in a mode for PermissionsBukkit? ... its very needed! or any other way without groups ... :SS
     
  13. Offline

    TZer0

    I will be using nodes to determine what payout people should get. This will hopefully fix all issues.
     
  14. Offline

    braintumor

    How do you set the amount of money you receive. It's at zero for me and I don't know how to change it.
     
  15. Offline

    chrisgun

    Please Update for iConomy 6
     
  16. Offline

    Cubez

    Yeah same here, please update. :)
     
  17. Offline

    Bjourk

    I'd really like to see an editable config file in the update so we have the option to write our setup while offline.

    I get the following when I try /pd sy:
    Code:
    2011-10-02 21:25:43 [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:41)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getPrimaryGroup(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
        at tzer0.PayDay.PayDay.onCommand(PayDay.java:215)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
        ... 12 more
    
     
  18. Offline

    MJRamon

    Yes, please!
     
  19. Offline

    jeroen1602

    i heve it to
     
  20. Offline

    cedrico123

    I dnot know how to set the payday...how i create a payday?

    can someone send me the config txt file with the payday created...?
    i realy don't Know how to config the payday...i type /pd pd :an internal error ocurred wile attemping to perform this command...

    ca someone plz make a video explain how to set the payday a simple payday every 1 hour....i realy don't know how to set it...

    can someone make a video,explains how to set the payday....like 1 hour interval...? i don't know how to set the payday...

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

    jeroen1602

    i have a error
    Code:
    null
    org.bukkit.command.CommandException: Unhandled exception executing command 'pd' in plugin PayDay v0.3.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:355)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.NoClassDefFoundError: com/iConomy/iConomy
        at tzer0.PayDay.PayDay.checkErrors(PayDay.java:724)
        at tzer0.PayDay.PayDay.payDay(PayDay.java:579)
        at tzer0.PayDay.PayDay.onCommand(PayDay.java:309)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
        ... 13 more
    Caused by: java.lang.ClassNotFoundException: com.iConomy.iConomy
        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:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
    but i have Iconomy
     
  22. Offline

    cedrico123

    can u just make a simple payday that we have to put /payday <amount>....

    :)

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

    HeaTr

    How do you set how much money gets paied? Please reply!
     
  24. Offline

    Alexion

    Will there be a no-spout version for 1.8?
     
  25. Offline

    HeaTr

    How do you put how much money get given out? Becuase its says everyone will get 0 money?
     
  26. Offline

    harbo5

    Great plugin!
    I'm defiantly in favor of Essentials-eco support though.

    This plugin dose NOT require Spout but, with Spout the plugin is more enhanced.

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

    Alexion

    Ok thanks.
     
  28. Offline

    desicions

    Can I have an example of config.yml, please?

    This is my config, and it won't work...
    Code:
    failedSoFar: 0
    modetype: s
    mode: h
    essentials: false
    interest: 0.0
    lastFailed: false
    message: It is pay day!
    onlinemode: true
    players:
        Desicions: none
    groups:
        Member: 120
        Owner: 500
        Guest: 40
        none: 0
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  29. Offline

    Limesta

    lol I love your Dungeon keeper 2 reference, man i wish China hadn't taken plans for DK-3, they made it into and MMoRPG game. . . .
     
  30. Offline

    Taketheword

    Someone please help me with the configuration... the commands are just plain confusing. Can someone post/PM me an example config file that I can start off with... I'm desperatly confused. And, I had no issue with plugins such as worldedit, worldguard, or Citizens.. this one just stumps me :(
     
  31. Offline

    NordicBlue

    iConomy 6, when trying to execute /pd sync:

    org.bukkit.command.CommandException: Unhandled exception executing command 'pd' in plugin PayDay v0.3.1
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:180)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    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)
    Caused by: java.lang.NoClassDefFoundError: com/iConomy/iConomy
    at tzer0.PayDay.PayDay.onCommand(PayDay.java:197)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 14 more
     

Share This Page