Inactive [ECON] Paid2Mine - Get paid to mine items with iConomy [928]

Discussion in 'Inactive/Unsupported Plugins' started by gnftoxic, Apr 15, 2011.

  1. Offline

    gnftoxic

    Paid2Mine
    Get Paid to Mine!​
    Version 0.3.0

    Download | Source Code | Latest Dev Builds​
    Wiki | Contribute Ideas | Donate

    Live Chat @ irc.esper.net #pwnage
    In-depth description of what the plugin does.​
    Commands:
    /minepay [-version|-clearrec|countrec|force|-reload]​

    How do I install Paid2Mine?
    It's fairly simply, really. Download it and upload / place it to your plugins directory, and run your server. Configure as necessary in the values.yml file in plugins/Paid2Mine, and execute the command /minepay -reload as an Op.​
    For an example configuration, please visit our wiki.​

    Changelog:
    • 0.3
      • Update for #928
      • Adds Permissions (Paid2Mine.getpaid)
    • 0.2
      • Update for #860
      • Disables "Farming" or "Boosting" of money
      • Supposedly fixes issues with the timeout on updating iConomy (please let me know if it does!)
      • Added /minepay force (force payment)
      • Added /minepay -clearrec (clears records)
      • Added /minepay countrec (counts records)
      • Added /minepay list (lists all items in the config to a player - this will be updated)
      • Records are temporary logs (upto 2.5 minutes) for the boosting prevention.
    • 0.1.2
      • Implemented user alerts in-game
      • Updated for CB 740 and iConomy 5
    • 0.1.1
      • Fixes the (sometimes occurring) not being paid for different items.
    • 0.1
      • Initial release.
    To-Be Implemented:
    • Permissions
     
    dark_hunter and DeaGato like this.
  2. Offline

    Hitman4Hire

    Could you please add some functionality to notify players when they receive money?
     
  3. Offline

    gnftoxic

    Adding this.
    This is being updated for iConomy 5, however I will not be adding your request at the moment. I will in my next update, most likely this weekend or tomorrow.

    Paid2Mine 0.1.2 has been released.
    This update includes support for CB #740 & iConomy 5.
    You can now alert players when their accounts are updated from Paid2Mine.
    There are new configuration values.
    config.alert.enabled and config.alert.message

    Set 'enabled' to 'false' if you do not want to alert the player, and you may change the alert message as you wish. This supports color codes, so use & for the trigger and the color code after it. So, for red, use &c
    As far as displaying how much money is made, place $$ where you wish the amount to be placed.

    New example configuration:
    Code:
    config:
        alert:
            message: "&cIt's payday! You have earned $$ money"
            enabled: 'true'
    items:
        default:
            value: '0.00'
        stone:
            value: '0.10'
            itemid: '1'
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  4. Offline

    Zeroi9

    How often is the payday?

    Edit:
    Is it Paid2Mine which posts
    2011-05-05 05:47:55 [INFO] ---------------------
    all the time?

    And also, I tried reloading it, it says it reloade, but still doesn't give me any money shows me the alert.

    No money, no alert message, but it does print "Updating Zeroi9's account..." in the console.
    Show Spoiler

    config:
    alert:
    message: "&cDu har tjanat $$ kronor!"
    enabled: 'true'
    items:
    default:
    value: '0.01'
    stone:
    value: '0.15'
    itemid: '1'
    grass:
    value: '0.05'
    itemid: '2'
    dirt:
    value: '0.05'
    itemid: '3'
    cobblestone:
    value: '0.10'
    itemid: '4'
    wood:
    value: '0.05'
    itemid: '5'
    woodd:
    value: '0.10'
    itemid: '17'
    sand:
    value: '0.05'
    itemid: '12'
    gravel:
    value: '0.05'
    itemid: '13'
    goldore:
    value: '20.0'
    itemid: '5'
    ironore:
    value: '5.0'
    itemid: '15'
    coalore:
    value: '2.0'
    itemid: '5'
    lapislazuli:
    value: '10.0'
    itemid: '21'
    sandstone:
    value: '0.15'
    itemid: '24'
    mossstone:
    value: '25.0'
    itemid: '48'
    redstone:
    value: '35.0'
    itemid: '73'
    diamondore:
    value: '50.0'
    itemid: '73'
     
  5. Offline

    gnftoxic

    Are you using iConomy 5?
    I've reuploaded Paid2Mine.jar without the debug messages, didn't realize I left them in, which means the update time was shortened, which is now fixed in the download.
     
  6. Offline

    Zeroi9



    This is what I get in the console:
    [INFO] [Paid2Mine] Enabled
    When I start it, nothing else.
    And the debug messages is gone, thanks.

    Now it doesn't even print the message that my money has been updated in the console... :eek:
     
  7. Offline

    gnftoxic

    That was a debug message. Could you tell me what your server address is? I want to see if it's actually doing anything or not. I'll have to check it in the morning, as I need to be heading off.
     
  8. Offline

    Zeroi9

    Do you have time now or do you have to go right now?
    if you can stay, pm me your ingame name and I'll whitelist you and reply with ip.

    Edit: it works fine without my items, only with default stone

    One more thing:
    Now, with my changed file, it did print out once "Du har tjänat x kronor!"
    it's on Swedish. So this means it works, but now it doesn't anymore. It only prints out once

    Now it works, and have worked for many hours, now it just stopped.

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

    gnftoxic

    It -just now- stopped working? Any error messages?
     
    Zeroi9 likes this.
  10. Offline

    Zeroi9

    Nope, nothing.
    Just stops printing "updating blabla" in the log, and stops giving money at all.
    We have to restart and it works an hour or so, then it stops.
     
  11. Offline

    gnftoxic

    I'll do some testing on my server after I get my data transferred over. Got my new dedicated server today and I've gotta finish transferring data.
     
  12. Offline

    Zeroi9

    Okay. Would be great if you could get a fix for this.
    Might be when you /reload the saves, and after 10-15 minutes it stops.
     
  13. Offline

    gnftoxic

    Could you tell me what kind of setup you're running?
    e.g. MySQL, HGsql or whatever it is that they put in iconomy, SQLite...
     
  14. Offline

    Zeroi9

    SQLite
     
  15. Offline

    Zeroi9

    gnftoxic, any progress?
     
  16. Offline

    gnftoxic

    Wasn't able to get to it yesterday, apologies. Taking a look at it today.
    I just setup iConomy, and it says the only two options are H2 and MySQL, however "SQLite" worked just fine. I'm wondering if that just links to H2SQL now.

    Edit: I've sat here for about 30 minutes now trying to replicate your problem, mining every block in sight. I have yet to receive no payment for my mining.
     
  17. Offline

    Zeroi9

    Alright, well, I'm right now changing to MySQL and see if that solves it.

    Nope, changed to MySQL for iConomy.
    Paid2Mine just stops working after 10 minutes. No errors, no more money.

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

    mze9412

    Happens on my server, too. I also see the following exception in my server.log:

     
  19. Offline

    goz3rr

    Plugin version 0.1.2, iConomy 5 with MySQL:

    No config file is being generated.

    It appears the download link either: Link to 0.1.1 or it still is named as 0.1.1

    Oh, my fault. I used the second link instead of the first.

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

    gnftoxic

    Thanks for notifying me that the second link was there. I completely forgot lol
     
  21. Offline

    ark3typ3

    My players love this plugin, but I'm concerned about money farming (placing and destroying blocks). McMMO has some feature that determines if a block was placed recently and prevents you from getting special drops from it, could you implement something similar to stop the money farming?
     
  22. Offline

    gnftoxic

    I will try to as soon as possible, it's been on my todo list for a while, however I haven't gotten around to it.
     
  23. Offline

    stabstalker

    i am getting this aswell.
    how do i get it to work?
     
  24. Offline

    gnftoxic

    You download the latest version instead of running the old version.
     
  25. Offline

    stabstalker

    i downloaded it here a few minutes ago
     
  26. Offline

    Lesser

    Errors


    Code:
    19:40:58 [SEVERE] java.lang.NullPointerException
    19:40:58 [SEVERE]     at me.pwnage.bukkit.paid2mine.Paid2Mine.readConfig(Paid2Mine.java:90)
    19:40:58 [SEVERE]     at me.pwnage.bukkit.paid2mine.Paid2Mine.onEnable(Paid2Mine.java:54)
    19:40:58 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    19:40:58 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:676)
    19:40:58 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:249)
    19:40:58 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:131)
    19:40:58 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:109)
    19:40:58 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    19:40:58 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    19:40:58 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    19:40:58 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
    19:40:58 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    19:40:58 [INFO] [Paid2Mine] Enabled.
    
    Thanks in Advance,
    Lesser
     
  27. Offline

    gnftoxic

    Post your configuration, please.
     
  28. Offline

    Lesser

    Sorry about that, I'm running CraftBukkit 766
    Would you like to know the other plugins too?

    I've never sent an error report.
     
  29. Offline

    gnftoxic

    Not that configuration, your configuration in plugins/Paid2Mine/values.yml
     
  30. Offline

    Lesser

    Code:
    items:
        default:
            value: '5.55'
        stone:
            value: '6.25'
            itemid: '1'
        coalore:
            value: '12.55'
            itemid: '16'
        dirt:
            value: '6.1'
            itemid: '3'
        wooden plank:
            value: '5.55'
            itemid: '5'
        sand:
            value: '5.55'
            itemid: '12'
        gravel:
            value: '5.25'
            itemid: '13'
        iron ore:
            value: '15.15'
            itemid: '15'
        gold ore:
            value: '22.85'
            itemid: '14'
        wood:
            value: '5.55'
            itemid: '17'
        sandstone:
            value: '6.10'
            itemid: '18'
        diamond ore:
            value: '27.75'
            itemid: '56'
     
  31. Offline

    gnftoxic

    Oh you just haven't updated your configuration to add in the new values.

    Code:
    config:
        alert:
             message: "&cIt's payday! You have earned $$ money"
             enabled: 'true'
     

Share This Page