[ECON/FUN] eMiner v1.1 - Make mining more profitable [1317]

Discussion in 'Inactive/Unsupported Plugins' started by PatrickFreed, Aug 3, 2011.

  1. Offline


    Download: 1.1 (jar)
    Source Code: GitHub

    Requires: Register


    This is a fork of the plugin iMiner by FlingleR. It let's the admin of a server give miners Economy money and/or items after mining a certain amount of certain blocks. (All configurable)

    • Highly Configurable
    • MySQL support
    • All major economy plugins support
    • Can give items along side/ instead of economy money
    • SuperPerms support (Not 3.x or 2.7.4, sorry!)
      • eMiner.use
    • Op only support as well.
    • Per-item message configs
    Example config.yml (open)

    ##iMiner Config##
    #Be sure to make item names all lower case and one word
    #Log Mode can either be YAML or MySQL, if an incorrect one is chosen, the plugin will default to YAML
    Use_SQL: true
    MySQL-Host: localhost
    MySQL-Port: 3306
    MySQL-Database: minecraft
    MySQL-User: root
    MySQL-Password: password
    Payment-Msg: '[iMiner] You recive %v and %a %i for mining %a block of %b'
            Amount: 1
            Money: 1
                Type: 2
                Item-Amount: 1

    • 1.1 - CB 1317 - 10/16/11
      • Added Register support
      • Temporarily only uses SQL
      • Cleaned up some of the mess that was this plugin
    • 1.0 - Submission
      • Added an option to log to YAML instead of SQL
      • Added support for all major economies
      • Switched to SuperPerms, no longer supports Perms3 or 2.7.4
    • 0.1 - initial build
    • FlingleR (author of iMiner, much of the code is his)
    Saught likes this.
  2. Offline


    I'm not going to use it for now, sorry!
  3. Offline


    Yeah, my server runs 2.7.4 also. Its sort of a thing we're supposed to do nowadays, they want the old Permissions plugins to die.
    I guess I could throw in older support if you wanted it though. :p
  4. Offline


    Sorry for the delay in submission approvals, I've been away for a while.
  5. Offline


    No worries ;)
  6. Offline


    Support for the old system would be good, I'm finding your YAML config a bit mysterious, you haven't indicated what any of those settings do, do you not have a guide written for it??
  7. Offline


    Here's it in a nutshell:
    You can either choose to log to the config (which will be changed soon, I don't think the config should be where everything is logged) or to have it log to SQL.
    The rest of the configs are SQL options and the message you get when you receive payment.
    At the bottom, Materials is where you configure after how many blocks of x you get y and z. So in the example config in the OP, after mining one sand, the player gets 1 economy money and 1 stone added to their inventory.

    If you do choose logging to YAML, that just means SQL won't be used and how much of x item each user mines is logged at the very bottom of the page.
  8. Offline


  9. Offline


  10. Offline


  11. Offline


    Somewhat usable in [1185]
    Blocks need to be mined twice to count. (in config.yml Amount: 1)
    In other words you need to mine like 2 coal to get credit for 1 coal.
    Doesn't have to be consecutive tho. 1 coal then a cobble then a coal will give you the coal credit.

    Not sure what to use for some Material nodes. Redstone Ore, Diamond Ore, and Moss Stone.
    These are what I've tried
    redstone: redstoneore: redstone_ore:
    diamond : diamondore: diamond _ore:
    mossstone: moss_stone:

    Any chance on an update, and perhaps a default config.yml that includes all the material nodes?
  12. Offline


    Wasn't aware anyone used this plugin, cool. Yeah, it needs some serious updating, I'll look into fixing everything this week, and changing the 'logging to config.yml' option to 'data.dat' or something. The config is a terrible place for a log.
    I'll also get a list of all the names and what not, will probably just switch to ids or something.
  13. Offline


    TY :)
    My work around right now is just double the money amount since it only pays every other block.

    btw no rush! and my users love the idea of making coin while digging.

    fyi -
    In my original reply i said
    "Blocks need to be mined twice to count. (in config.yml Amount: 1)"
    this isn't accurate. I changed the Amount: 5 and i needed to break 6 to get the payout, so it seems to just be adding one
  14. Offline


    is this mod gonna get updated soon?
    i cant get it to work in cb 1317
    so would be nice with an update :D
    i realy like the idea of this mod :D
  15. Offline


    Today, I promise this time!
  16. Offline


    ty my good sir :D
  17. Offline


    Version 1.1

    Was not able to test thoroughly, but it should work. For the time being, SQL is the only supported option. I'll work on a more lightweight one this week. (Will likely be data.bin)
  18. Offline


    I'm looking for a plug-in that:

    a) allows player to get paid iConomy6 money for mining blocks (like Paid2Mine)
    b) allows player to get paid iConomy money for placing blocks (like WurkIt)
    c) Supports SuperPerms
    d) doesn't require mySQL or other 'heavy' database application to operatate (prefer flatfile, or some other automatic database scheme that doesn't require me to install a bunch of stuff on my server).

    This plug-in seems to come close, but not quite there yet.

    Can anybody recommend something that fits the bill? I'm not aware of any other plug-in's that do this.

  19. Offline


    still not working for me :'(
  20. Offline


    Can u please link to 1.1 your current link is for 1.0
  21. Offline


    Can you post an error log?
    It is 1.1, I just forgot to change the version number in plugin.yml
  22. Offline


    In that case it dont work..
    CB 1317

    2011-10-19 00:55:54 [SEVERE] Error occurred while enabling eMiner v1.1 (Is it up to date?): java.lang.Integer cannot be cast to java.lang.String
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
    at org.bukkit.configuration.file.YamlConfiguration.deserializeValues(YamlConfiguration.java:92)
    at org.bukkit.configuration.file.YamlConfiguration.deserializeValues(YamlConfiguration.java:93)
    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:64)
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:143)
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:109)
    at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:178)
    at me.patrickfreed.eMiner.eMiner.onEnable(eMiner.java:44)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:170)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    at com.bekvon.bukkit.plugman.PlugMan.loadPlugin(PlugMan.java:367)
    at com.bekvon.bukkit.plugman.PlugMan.doCommand(PlugMan.java:122)
    at com.bekvon.bukkit.plugman.PlugMan.onCommand(PlugMan.java:65)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:355)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:351)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:506)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:485)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
  23. Offline


    Try encasing all your number values in single quotes, apparently Bukkit parser isn't working.
    Also, forgot to mention replace all block names with ids. No sub ids either, just 1,2,3, etc
  24. Offline


    Amount: '1'
    Money: '1'
    Type: '2'
    Item-Amount: '1'

  25. Offline


    @ScottSpittle Working on getting a pull request, its a bug in Bukkit.
  26. Offline


    Ok thanks.
  27. Offline


    Updated to work, you just need to surround the ids in the path with ''.
    Delete your config and itll generate a new one that has the ' '.

    Also, non sql mode half works; the data doesnt persist. Other than that though, you do not have to use sql.
  28. Offline


    I Prefer SQL.. so it has to look like?

    Amount: "1"
    Money: "1"
    Type: "2"
    Item-Amount: "1"

    Just tried and got this following error:
  29. Offline


    lol a plugin that makes the activity that provides cobble, coal, iron, gold, diamond, lapiz, redstone and obsidian more profitable? How about you just give players piles of money for simply being logged in? It would be easier to code. ;)

    Seriously though I might use this though to encourage work in areas like farming where the blocks are not extremely valuable to start with.
  30. Offline


    No it should be

    Money: 1​

    Also, I will do some testing to see what that plugman error is, no idea whats causing it. (Works for me at the moment.)

    Also, opinions on merging this with EconomyPunga and adding features for other events? (Like natural death, surviving a large fall, etc)

    Edit: Redownload and fix your config, it should work.

Share This Page