The Experienced Miner
The Experienced Miner
Version: 1.2
Author: KrazyTheFox
Features:
- Awards experience when blocks are broken
- Easily customizable rewards and blocks
- Supports every block type
- Has anti-cheat now! Player placed blocks won't award experience, unless this feature is disabled in the config.
Commands:
- None
Permissions:
- None yet. (If you have ideas for some, please share!)
Usage:
The config.yml file will automatically generate if it doesn't already exist. To remove a block from the exp drop list, simply remove the appropriate lines from the config. To add a new block, add 2 new lines to the file:
Num_MATERIAL_NAME: <amount>
Exp_MATERIAL_NAME: <amount>
The first line controls how many blocks of the specified type should be broken before the experience on the second line is awarded.
The anti-cheat feature is enabled by default, but if you want to turn it off, simply add the following to a new line in your config:
Anti-Cheat: false
Updates:
Fixed Glowing redstone ore missing from the default configs.
Added an anti-cheating feature and fixed a bug caused when a number of blocks was less than 1 in the config.
This plugin allows people to mine in protect areas.. So they can't break the block, however they can still get xp. I had to remove this great plugin before of this
Placed ores in a creative world, being broken in creative mode are awarding xp with anti-cheat enabled. This plugin desperately needs permissions or multiworld support.
@Shad0wSpl1c3r
Been really busy lately, but I'll see about adding it in sometime this weekend. This seems like the simplest solution, although use/exempt contradict each other. It'd be one or the other; I can't think of a reason for both.
On our server, we have different perks for different groups. Our Hunters get extra EXP from killing mobs, our Merchants can create shops, and it would be nice if only the Miners would get EXP from mining...
Permission node:
expminer.use
expminer.exempt
I would do permissions at least to disable the feature by certain groups.
It would also be nice if certain groups could be given certain level of xp gain per block.
good plugin, thank you !! :)
@lizardbones
An interesting idea, but it does essentially the opposite of this plugin, and in the interest of keeping the file size as small as possible, that's more suited to being its own plugin. The idea with this plugin is that players would get experience for collecting the resources needed for the build. It achieves the same thing, just in a different way.
@AuraL17
I forgot that redstone becomes another block, glowing redstone ore. Adding the following to the config should fix that:
Exp_GLOWING_REDSTONE_ORE: 6
Num_GLOWING_REDSTONE_ORE: 5
I'll update the default config soon.
All seems to be in order except i am not getting exp from redstone
@lizardbones
They would just be able to place blocks in a straight line forever. If it is added, make it a config option please. It's silly in my opinion.
I'm glad the anti-cheat support was added. I've just loaded this on my server running CraftBukkit build R0.3/#2084 and it loaded with no errors. I'll have to wait until I get home to see if it actually works, but all signs point to yes. :-)
I wish it were possible to have players earn XP from placing blocks while building structures, but still prevent them from cheating (by placing a block, getting XP, then mining the block, then placing the block again). Perhaps mining a block you've placed removes XP? So players could earn XP by building things and not mining them? That's probably still exploitable though. Just a though.
@KrazyTheFox
Much thanks, will be testing
@AuraL17
@xorvious
I've fixed the divide by zero bug and created an anti-cheating option. The list of player placed blocks will remain intact over server restarts.
@xorvious
@AuraL17
I'll see about adding some anti-cheat measures. I built this for my own use mostly and hadn't thought about that. I'm also looking into the divide by zero thing.
@xorvious
Also, I don't see how any plugin like this could be desired without a preventative measure of that nature.
With some work this would make a nice replacement for Expminer, which has not been updated in a while. I believe the cheat of replacing blocks was stopped in that plugin by keeping a list in memory of all blocks placed by a player and not allowing XP from those again. This data was lost on a server restart but it prevented the farming of blocks for XP for the most part. It also had a nice feature of being able to announce on the server when someone found diamonds, it was fun!
Hello, nice plugin but it's the same problem with all plugins like this. You can just mine iron or diamond(silktouch) or whatever and just keep putting it down and mining it for free exp.
@KrazyTheFox
Perfect. Thank you!
@GeMiNiTrO
It has been fixed!
@KrazyTheFox
Cool, i hope this work after you fix it, i have the same problem.
Thanks