[INACTIVE][ECON]/[FUN] iMiner v0.1 - Pay money for mining blocks (Pay to those poor miners) [677]

Discussion in 'Inactive/Unsupported Plugins' started by FlingeR, Apr 14, 2011.

  1. Offline


    This plugin is based on the ideas generated on this post:

    iMiner gives you the possibility to pay money when a player mine a defined amount of any material!!
    You just need to define the Blocks, the amount and how much money do you want to pay to the players in the blocks.properties and set the configuration in the config.yml file.

    • MySQL Support
    • iConomy Support
    • Permissions/GroupManager+FakePermissions or OPs Support.
    iMiner 0.1 - Source Code

    Example config.yml
    - Download example.
    UseMySQL: Always TRUE, its for future use of SQLite.
    MySQL-host: Host of the MySQL server.
    MySQL-port: Port used to connect to MySQL.
    MySQL-database: Database to be used.
    MySQL-user: User for MySQL.
    MySQL-password: Password of the user.
    Payment-msg: Message to be displayed when a user gets paid.
    %v = Value.
    %a = Amount of blocks.
    %b = Material.

    Example blocks.properties.
    - Download example.
    STONE=64,1 -> will pay 1 for 64 blocks of stone.

    Permissions Nodes

    Known Bugs
    • None so far!
    • Version 0.1:
      • Releasing.
    • Add support for BOSEconomy.
    • Add support for SQLite
    • Optimize the code
    • Add a blacklist for not retrive money when you mine the same block twice.
    If you like something i do, you can:

    ne0nx3r0 likes this.
  2. Offline


    Nice! Gonna install this one :)
  3. Offline


    Is there a way you can just pay them a set amount for every block they mine?
  4. Offline


    Hey, this is a really good idea for a plugin!
    I keep getting this error, though:

    22:05:42 [SEVERE] Could not pass event BLOCK_BREAK to iMiner
    at com.Econ.FlingeR.iMiner.iMinerBlockListener.onBlockBreak(iMinerBlockListener.java:26)
    at org.bukkit.plugin.java.JavaPluginLoader$32.execute(JavaPluginLoader.java:392)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:157)
    at net.minecraft.server.ItemInWorldManager.b(ItemInWorldManager.java:118)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:389)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
  5. Offline


    Can we get BOSEcon support?
  6. Offline


    how can i chnge it to iConomy reward?
  7. Offline


    @hunty197 In the "blocks" file just do like "STONE=1,1" that will pay 1 coin for every 1 stone mined.
    @chowmeen Make sure you are using the newest version of Bukkit.

    @beatcomet This plugin currently only supports iConomy so there is no option to change what currency it uses, to answer your question directly, you don't change it to iConomy, it already IS iConomy.

    Now to my question, hehe. How would one set the payout for lets say, Diamond? I've tried the following; DIAMONDORE, DIAMOND_ORE, DIAMOND ORE, and them all in lowercase as well, with no luck. Could you maybe add support for item IDs instead of names? Because everyone has a different name for different blocks, I would find it easier to just use ID 56, instead of trying to figure out the darn name. :p
    gilbz likes this.
  8. Offline


  9. Offline


    Looks cool! But does it only work with MySQL?
  10. Offline


    1- Thanks for the help.
    2- All right, i will change the Type to TypeID number.

    Sorry for the time being, i catch a flu.
    And what is your native language?

    Working on SQLite as i write.
  11. Offline


    I like the idea! My players requested such a plugin for a while now :) As soon as you have SQLite support I will install it! I have a MySQL DB but I want to keep the minecraft server away from it ^^
  12. Offline


    Really not a problem, I know how overwhelming it can be answering multiple questions.

    Also, I was curious if you could maybe add support to make it send a different message for each line of text in blocks.

    STONE=1,1,You get 1 coin for mining 1 stone.
    WOOD=17,1,You get 1 coin for chopping 1 wood.

    Doing it this way will make messages look better, because I don't like hows its like DIAMOND_ORE, and once you change it to IDs it will say "You get <currency> for mining <amount> of.." then an ID number, which would be worse.

    Beyond that, then you could rename this plugin to like "PayOut" or something, it wouldn't just be mining, you would be able to set message for any "skill" such as woodcutting, mining, digging, and even farming!

    Just my two cents, either way I love this plugin, thanks very much for your hard word! :)
  13. Offline

    Noctis Akatsuki

    I love it mate :) Only one problem :p I can't add rewards for blocks that requires 2 words(Such as Diamond Ore etc)
  14. Offline


  15. Offline


    Right so, I got the blocks all good, and I thought it was working, because it was working for me, but turns out this doesn't find permissions so it defaults OP only. I've tried the 3 latest versions of permissions, tried the newest of group manager (Which I cant stand) and fake permissions, so I'm not sure if its just me and Im doing something wrong, or if its a bug?
  16. Offline


    hey great plugin but i get a error with soemhing mysql but i have false the mysql mode
  17. Offline

    Noctis Akatsuki

  18. Offline


    For some reason I'm not getting iConomy rewards... My MySQL is well set, the mod does load correctly at start and permission is set. But I'm still not getting money from it! Any idea?

    Just to tell you... I have residence & ecoCreate mod and they both work with Iconomy money as they should.
  19. Offline


    Doesn't seem to work with the latest bukkit.
    It creates the mysql table, but doesn't put data into it.
  20. Offline


    Waiting for a stable release of iConomy to update.
  21. Offline


    Hey, Very good plugin :D :D :D
    Only 1 thing :( i keep getting this all time
  22. Offline


    my error too -.-

    I hope it come for 1.5 ;)
  23. Offline


    Any news? iConomy 5.0 is out..
  24. Offline


  25. Definitly dead plugin ? :(
  26. Offline


    cb 677 - inactive
  27. This was an awesome plugin, nobody could take it ?

Share This Page