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. How about my suggestion ?
     
  3. Offline

    gnftoxic

    It's possible to make everything in the mod completely optional, but announcing every time the player received such a small amount of coins seems like a horrible idea. If others support this, then I'll put it in, but not for a single person. Sorry.

    Could've sworn I replied to that, guess I just didn't hit reply.
    That could be useful, yes. Like an administrator sets this on or off, then drops are disabled any time you get money?
     
  4. Offline

    god_chris

    ok no worries dude, just an idea from personal experience is all :p
     
  5. No, I mean a player chooses to mine for money (considerably more money) but player doesn't get any drops from the block destroy (you should completly block the destroying event if you can so no other plugins can drop items for those blocks)
    This should be an additional option and the current style (always on) should be disableable.
     
  6. Offline

    $p!k3

    I get this message after Paid2mine loads.
    Code:
    16:45:06 [SEVERE] java.lang.NullPointerException
    16:45:06 [SEVERE]       at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:989)
    16:45:06 [SEVERE]       at java.lang.Double.parseDouble(Double.java:510)
    16:45:06 [SEVERE]       at me.pwnage.bukkit.paid2mine.Paid2Mine.readConfig(Paid2Mine.java:80)
    16:45:06 [SEVERE]       at me.pwnage.bukkit.paid2mine.Paid2Mine.onEnable(Paid2Mine.java:49)
    16:45:06 [SEVERE]       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    16:45:06 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
    16:45:06 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
    16:45:06 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
    16:45:06 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
    16:45:06 [SEVERE]       at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    16:45:06 [SEVERE]       at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    16:45:06 [SEVERE]       at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    16:45:06 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    16:45:06 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    WHYYYY!!
     
  7. Offline

    Frosth

    Yeah, I agree Digi.
    I would actually add that it should be the default behaviour.
    Mining already adds resources to the economy, it shouldn't add money as well.

    Why not have a permission node: paid2mine.toggleself
    then a player just /paid2mine
    And it toggle his mining results between gaining resources and gaining iConomy .

    Overall, this can make easy gains for miners (and adventurers gaining gold on monsters).
     
  8. Offline

    gnftoxic

    Please post your configuration.
     
  9. Offline

    $p!k3

    this?
    Code:
    items:
        Default:
            value: '1.00'
        stone:
            itemid: '1'
            value: '0.10'
        coalore:
            itemid: '16'
            value: '20.0'
        goldore:
            itemid: '14'
            value: '100.0'
        ironore:
            itemid: '15'
            value: '50.0'
        lapislazuli:
            itemid: '21'
            value: '100.0'
        diamond:
            itemid: '56'
            value: '200.0'
        obsidian:
            itemid: '49'
            value: '40.0'
        dirt:
            itemid: '3'
            value: '0.5'
        wood:
            itemid: '17'
            value: '1.0'
        redstone:
            itemid: '73'
            value: '15.0'
     
  10. Offline

    gnftoxic

  11. Offline

    SpeAroX

    i have problem when i use this plugin my server got lagg becouse all time contact the server with mysql i can repair this example: when i get 64 with item 4 the server give me xx money example 64 money or other lower refresh time or other i need this plugin but with lagg no good :S
     
  12. Offline

    gnftoxic

    Hmm right, since iConomy constantly updates the table... I'll have to start caching the updates. I'll do this tomorrow night.
     
  13. Offline

    SpeAroX

    very thanks i wait for update :) this is very good plugin but with the lagg no can use.
     
  14. Offline

    ThomasCox

    I'm not too sure about this, but is there a feature or something you need to type in ingame to enable and disable this Plug-in?

    Great Plug-in, Thanks!
     
  15. Offline

    chernobyl360

    Code:
    2011-04-22 13:44:06 [SEVERE] Could not pass event BLOCK_BREAK to Paid2Mine
    java.lang.NullPointerException
        at me.pwnage.bukkit.paid2mine.MineBL.onBlockBreak(MineBL.java:27)
        at org.bukkit.plugin.java.JavaPluginLoader$33.execute(JavaPluginLoader.java:398)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:156)
        at net.minecraft.server.ItemInWorldManager.b(ItemInWorldManager.java:118)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:419)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:73)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  16. Offline

    gnftoxic

    Which version of CraftBukkit are you using?
    Not at the moment, no.
     
  17. Offline

    chernobyl360

    CraftBukkit #706 Experimental
     
  18. Offline

    gnftoxic

    I have not tested it on this version yet, nor 709 (the version I am running on).

    This integrates updating every ~2.5 minutes. This is an unofficial / unrecommended build, however it is working on my server, and thus it seems to be stable enough to declare as an unofficial release to the next version.
    http://bamboo.pwnage.me/browse/BUKKIT-PAID2MINE/latest/artifact/JOB1/Paid2Mine.jar/Paid2Mine.jar

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

    Nijikokun

    Permissions?
     
  20. Offline

    Wanny

    +1 ... I need permissions to make it available only to a certain group.

    and +1 for optional money gain message too
     
  21. Offline

    gnftoxic

    Certainly will be adding permissions soon, I just hadn't gotten around to it. :)
    You mean optional gain command thing?
     
  22. Offline

    SpeAroX

  23. Offline

    Wanny

    Nah you know a small display message that say: You gained 1 coin for mining X blocks. (optional of course)

    But it's not really a must. Permissions is tho! I have a role system on my server and only miners would get access to money gain! That would be perfect. :)
     
  24. Offline

    gnftoxic

    Do you think it would be more efficient to send that message when the iConomy accounts are updated? I think it would be.

     
  25. Offline

    Afalanso

    It will be great if we can manage the stack of items like this for exemple:

    stone:
    stack: 20
    value: '14'
    itemid: '1'

    It means that every 20 blocks of stone, you earn 14 coins.

    Like this, you will be able to show a message when we earn coins because at the time, it's really annoying for not seeing what we earn.

    However, Great plugin, thank you :)
     
  26. Offline

    flap

    yes, that would be a great feature !!
     
  27. Offline

    Stealthheart

    Im having a problem with this. No matter what i change the value to, it will only pay 0.10 for anything i have down. I have no clue how to fix it.

    Code:
    items:
        default:
            value: '1.00'
        stone:
            itemid: '1'
            value: '0.10'
        coalore:
            itemid: '16'
            value: '0.25'
        goldore:
            itemid: '14'
            value: '0.75'
        ironore:
            itemid: '15'
            value: '0.50'
        lapislazuli:
            itemid: '21'
            value: '1.00'
        diamond:
            itemid: '56'
            value: '2.00'
        obsidian:
            itemid: '49'
            value: '1.50'
        redstone:
            itemid: '73'
            value: '0.75'
     
  28. Offline

    Raptor2213

    How about the option to pay players to BUILD, either in addition to, or instead of destroying blocks.
     
  29. Offline

    gnftoxic

    I could make something like that, yes. Seems logical too.
     
  30. Offline

    mze9412

    It doesn't seem to work with CB740 and iConomy 5. Could you please fix this? :)

    2011-05-03 17:30:29 [SEVERE] com/nijiko/coelho/iConomy/iConomy loading Paid2Mine v0.1.1 (Is it up to date?)
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
    at me.pwnage.bukkit.paid2mine.Paid2Mine.onEnable(Paid2Mine.java:36)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.coelho.iConomy.iConomy
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    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:307)
    at java.lan
     
  31. Sooooo..... again with my request of /paid2mine so you destroy blocks and get money but no drops :}

    And yeah pls update for iConomy 5 if you're adding my request :p
     

Share This Page