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

    hunty197

    It doesnt seem to be working becasue i dont get paid anything for mining something
     
  3. Offline

    gnftoxic

    Try redownloading it, I believe I ran into a small issue by not paying attention which version had uploaded, which might've been a broken build.
     
  4. Offline

    hunty197

    I got it to work. The problem was i forgot i had superpick on and it doesnt work with that.
     
  5. Offline

    gnftoxic

    Haha, on the bright sound, the tiny little things I needed to update have been updated :p I just don't remember what I did cause it was so minor.
     
  6. Offline

    BerserkB0mber

    I dont use iConomy, or BOSEconomy or any of the such, but I think it would be a really cool idea if you would make it so you would mine for a Lord.

    Like this:
    Lord gets user 1, and user 2 to join "Lords Mining Co."
    Lord tells users rules and pay blah blah etc etc etc.
    User 1 mines 1 coal ore block.

    Coal ore is transported to a chest that has lwc and or lockette compatability.
    iConomy money is then removed from Lord.(configurable prices in game)
    ie:
    /companycreate [Company's Name]
    /oreprice [Company's Name] [Ore's ID] [Price]

    And then to fix the issue with just stealing everyones items, you would need to add like:
    /companyjoin [Company's Name]
    /companyleave [Company's Name]
    also, you could add:
    /clockin
    /clockout
    Which would save your user in a company and you could just type /clockin rather than /companyjoin [Company's Name]

    also------
    You could add a configurable price (set by admin) of the price to create a company.
    ie:
    Lord wants to make a company called [Lords-Mining-Co.]
    Lord joins [Admin-Mining-Co.]
    Lord mines the shit outta the place for admin mining co.
    Lord gets 1000 iConomy moneys.
    Lord makes [Lords-Mining-Co.]
    Lord=Happy! :D

    Just a suggestion :p
     
    samy97, dark_hunter and Fastjur like this.
  7. Offline

    Lemontime

    I really like the ideas in the above post. Alternatively, you could try integrate it with Factions or Towny in such a way that the ore you mine could be transported to a central chest in your town or faction home and you would be payed by funds in the factions iconomy account. Just some thoughts, I'm definitely considering implementing this on my server, would just like a bit more integration and application. Well done on creating this!
     
  8. Offline

    Aethis

    Does it prevent players from placing down a block and mining it again for the pay? Like the stone, they could mine it, take the cobble, put it in the furnace, smooth it, place it, and mine it again? (Or the Iron/Gold ores from a straight mine.)
     
  9. Offline

    hellboyPS

    I'm not sure why, but it seems that Paid2Mine doesn't correctly parse the YAML file.
    I might have done a mistake because im not familiar with these files, but I think I've done everything right.

    I am only getting paid for the FIRST block entry (after default) and I only get the value paid which is last declared.

    That's my testing-file:

    Code:
    items:
        default:
            value: '0.00'
        stone:
            itemid: '1'
            value: '3.00'
        grass:
            itemid: '2'
            value: '2.00'
        dirt:
            itemid: '3'
            value: '4.00'
    Now, I won't get paid mining grass or dirt, but I will get 4.00 for every stone I mine.
    Did I miss something?

    I really like the idea of the plugin, by the way.
     
  10. Not working for me either.
    Bukkit 670, MC1.401
    config setup as described. I'm in admin group in permissions, with permissions set to '*'
    Every block seems to be providing the default amount of 0.1 coins, rather than the amounts specified in the config.
     
  11. Offline

    DeaGato

    This is my basic configuration, I added blocks only natural (sand, earth, rock etc.):

    But it does not work, something wrong?


    Code:
    items:
        default:
            value: '0.0'
        stone:
            value: '0.10'
            itemid: '1'
        grass:
            value: '0.05'
            itemid: '2'
        dirt:
            value: '0.05'
            itemid: '3'
        sand:
            value: '0.05'
            itemid: '12'
        gravel:
            value: '0.05'
            itemid: '13'
        gold ore:
            value: '10.0'
            itemid: '14'
        iron ore:
            value: '2.0'
            itemid: '15'
        coal ore:
            value: '0.2'
            itemid: '16'
        lapislazuliore:
            value: '5.0'
            itemid: '21'
        sandstone:
            value: '0.1'
            itemid: '24'
        obsidian:
            value: '20.0'
            itemid: '49'
        diamondore:
            value: '50.0'
            itemid: '56'
        snow:
            value: '0.05'
            itemid: '78'
        netherrack:
            value: '0.05'
            itemid: '87'
        soulsand:
            value: '0.05'
            itemid: '88'
        glowstoneblock:
            value: '2.0'
            itemid: '89'
    
     
  12. I'd like to suggest something, instead of constantly getting money for destroying blocks... you should add a command that toggles paid2mine on/off and when it's on, you get bigger money rewards for mined blocks but NO DROPS, it's like you're instantly selling the items you're mining :}
     
    Frosth likes this.
  13. Offline

    gnftoxic

    @DeaGato
    @TurokGMT
    @hellboyPS

    This has been fixed as of 0.1.1, simply redownload the .jar and upload it. To verify you have version 0.1.1, /minepay -version
     
  14. Thanks for notification of update - downloading now
     
  15. Offline

    MonkeyBoy4

    once i reload it still doesn't work

    Code:
    stone:
            itemid: '1'
            value: '0.10'
    coalore:
            itemid: '16'
            value: '5.0'
    goldore:
            itemid: '14'
            value: '10.0'
    ironore:
            itemid: '15'
            value: '8.0'
    lapislazuli:
            itemid: '21'
            value: '20.0'
    diamond:
        itemid: '56'
        value: '30.0'
    obsidian:
        itemid: '49'
        value: '30.0'
    dirt:
        itemid: '3'
        value: '0.5'
    wood:
        itemid: '17'
        value: '1.0'
    redstone:
        itemid: '73'
        value: '15.0'
    is there something wrong with my code?
     
  16. Offline

    gnftoxic

    Your spacing is incorrect. It is 4 spaces for each item, and 8 spaces for each itemid and value.
     
  17. Offline

    MonkeyBoy4

    wait so how do i fix it? im so confused. do you mean 4 spaces then type?

    Code:
       stone:
            itemid: '1'
            value: '0.10'
        coalore:
            itemid: '16'
            value: '5.0'
        goldore:
            itemid: '14'
            value: '10.0'
        ironore:
            itemid: '15'
            value: '8.0'
        lapislazuli:
            itemid: '21'
            value: '20.0'
        diamond:
            itemid: '56'
            value: '30.0'
        obsidian:
            itemid: '49'
            value: '30.0'
        dirt:
            itemid: '3'
            value: '0.5'
        wood:
            itemid: '17'
            value: '1.0'
        redstone:
            itemid: '73'
            value: '15.0'
    should it look like this?

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

    rubytap

    I LOVE THIS! LOVE IT!.

    However, I have a suggestion :D. Try making it so you can't mine a block, replace it, and still gain coins.
     
    MonkeyBoy4 likes this.
  19. Offline

    gnftoxic

    I'm going to attempt to do that in the next version. I have a theory that should work perfectly.
    You're missing a single space before stone, but yes. Assuming you have 'items:' at the top without any spaces prior to it. I've corrected it in the quote.
     
  20. Offline

    MonkeyBoy4

    thank you :)
    EDIT: when i just copy and pasted that code and reloaded it, it still didn't work. does this conflict with any other plugins?
     
  21. Offline

    gnftoxic

    I didn't notice, but it might be because you don't have a default. I hadn't tested without default.
     
  22. Offline

    MonkeyBoy4

    so i have to have a 'default' as an item with a value of 0?
     
  23. Offline

    gnftoxic

    Code:
        default:
            value: '0.0'
    
     
  24. Offline

    MonkeyBoy4

    here's my new code
    Code:
    items:
        Default:
            value: '0.0'
        stone:
            itemid: '1'
            value: '0.10'
        coalore:
            itemid: '16'
            value: '5.0'
        goldore:
            itemid: '14'
            value: '10.0'
        ironore:
            itemid: '15'
            value: '8.0'
        lapislazuli:
            itemid: '21'
            value: '20.0'
        diamond:
            itemid: '56'
            value: '30.0'
        obsidian:
            itemid: '49'
            value: '30.0'
        dirt:
            itemid: '3'
            value: '0.5'
        wood:
            itemid: '17'
            value: '1.0'
        redstone:
            itemid: '73'
            value: '15.0'
    still not working though
     
  25. Offline

    gnftoxic

    default, not Default. I would try this on my server, but I'm currently slightly busy.
     
  26. Offline

    MonkeyBoy4

    alright so change it then rerun the server?
     
  27. Offline

    Mason6364

    hey is the download jar link broken or something? gives me an error for both of them on google chrome and on internet explorer
     
  28. Offline

    god_chris

    could you make this so that you are notified of gaining money? one of my users complained they werernt getting any money, they were it was just that they werent told they were. obviously make this optional as im not sure you want to be told every time you mine a stone block when your mining
     
    sethgandy likes this.
  29. Offline

    gnftoxic

    The download link is working for me.
    As you pointed out, you surely don't want to be notified every time you get some points from this, it would spam the chat for a player VERY fast, that's why I didn't add it.
     
  30. Offline

    god_chris

    ahh right so if you were to add it, you wouldnt be able to make it optional?
     

Share This Page