Block Economy
== Block Economy ==
What it is:
A lightweight plugin that allows a player to earn money by mining, digging, and otherwise being destructive in the world. It does NOT Pay out on player-placed-blocks - so no farming your own builds.
Why not just use a job plugin?
Some servers don't want to use the entire job system, but want to bolster their economy without flooding the market - Block Economy allows that.
Does it work with <xx> Economy plugin?
If your money plugin is compatible with Vault, it should work with no issues. If it does not, please contact me here via PM so we can get it fixed.
How does it work?
BE uses a config.yml file to track if it is supposed to pay out on a block or not - the first time you load the plugin, it will automatically generate the config file and provide you with an example using block 0 (since you can't break air ...)
The config:
main: debug: false announce: false defaultPrice: 5 allowMCMMO: false block: '0': override: 5 // Ignore Muplier/Default - This is the reward multiplier: 1 //How much * defaultPrice per Block - Use one OR the other. chance: 50 // Percentage chance to get the reward for breaking the block
Note Regarding Block ID This plugin takes into consideration data values: ie: 17:2 (Spruce Wood) is a different value than 17:0 (Oak wood).
- Debug: Turns on and Off debug mode - with debug mode on, many messages will spam the console when things involving hte plugin occur - recommended you leave this off unless you're developing on it.
- Announce: Tell the player they earned money - Recommended to also remain off, unless your payouts are very rare.
- defaultPrice: The default amount a block gives, changed by the modifier (defined in each block)
- allowMCMMO: CURRENTLY DOES NOT WORK Will disable payouts if a player is using Mcmmo abilities such as SuperBreaker or GigaDrill.
When adding a block, add a modifier OR an override - not both. Override pays out that amount, period. Modifier will change the default amount - ie: defaultPrice is 5, modifier is 10 for obsidian, it will give 5 * 10 for breaking an obsidian block.
Setting, Adding or Changing Data
Prior to 2.3, all changes had to be made in the config. As of 2.3, Online commands have been added to allow editing without a reload.
- /blecon add 12:1 <- Will add 'Red Sand' to the database with values of 0
- /blecon set 12:1 override 0.50 <- Sets the payout to 0.50$ per block broken
- /blecon set 12:1 chance 10 <- Makes the payout only occur 10% of the time
The config will automatically save on each change - Alternately, you can still edit offline, and issue a "/blecon reload" to add the changes to game!
Example Configuration
hdgraming has provided an example configuration - this includes all blocks currently found within Minecraft! Of course, you will want to sift through it yourself and adjust things as needed, but it's a great place to start!
-
View User Profile
-
Send Message
Posted May 9, 2016Hello,
will you update this to 1.9? I'd really love to have it for my server :)
-
View User Profile
-
Send Message
Posted Aug 22, 2014quein me ayudo uno para mi version 1.5.2 yo no se como ponerlo porfa
-
View User Profile
-
Send Message
Posted Apr 28, 2014Yes, i managed to make it work by generating a new config.yml and adding the blocks by command. I guess that it didn't work because of the missing "override: " But still the announce option don't work for me.
Using the 2.3 version over spigot 1.7.5 1360
-
View User Profile
-
Send Message
Posted Apr 28, 2014Oh neat ... Had no idea people were even commenting here ... Subscription settings failure again.. Oi.
@Kompy_87
Re: Catch alls: If you enter only the Wood ID (Still using IDs right now), it will catch ANY wood with that id - That is, an id of "17" is Any log with an ID of 17, regardless of the data. If you wanted it to be ONLY for Oak Logs, you'd have to use 17:0.
@Nekuroi
Did you manage to get it to work? What version were you using?
@hdgraming
Great, Thanks!
@blaizex
The listener for the block breaker is set to listen on the lowest level - every other plugin should fire before it checks - if the event has been cancelled, as it would be while breaking a WG region you don't own, the event wouldn't even fire - It appears to be working as intended when I check .. is it not for you, or was this just a suggestion?
-
View User Profile
-
Send Message
Posted Apr 24, 2014Can you make that if you break a block in a worldguard-region which you don't own, you don't receive money?
-
View User Profile
-
Send Message
Posted Apr 3, 2014Have just exhaustingly done a config for every block in 1.7.*, hopefully all balanced - maybe youd like to add it as example default settings, also hopefully some of you can use it :)
CONFIG WITH ALL BLOCKS AND REWARDS
-
View User Profile
-
Send Message
Posted Mar 31, 2014This isn't working for me, the commands are working and the file is getting updated but i don't get any reward even if i put 100% chance.
Here is my config: http://pastebin.com/7MtDvgGr
Using Spigot 1.7.5 1360
-
View User Profile
-
Send Message
Posted Feb 5, 2014Great plugin! However, you stated that in 2.3 that you can use 'catch alls' such as adding Wood, which encompasses all wood. It's unclear how exactly this is done. Doing /blecon add wood doesn't work. Also, how does your catch all work internally? Is it checking for items with the word wood in it, or have you pre compiled IDs for all wood types so that when the end user uses the catch all, those IDs are being used?
Thanks!
-
View User Profile
-
Send Message
Posted Nov 7, 2013Hello,
You're plugin is really usefull in my opinion. I have been looking for this, and I was glad when I found it. But I was wondering how to add a way to get money by breaking wheat and sugercane and such.
Greetz, Ohfaaas
-
View User Profile
-
Send Message
Posted Aug 20, 2013Hi, can someone give me his config plz? because I'm french and I dont understand how does it work :(
thanks
-
View User Profile
-
Send Message
Posted Aug 12, 2013@deancohen1994 @Bball_Star @Scripthen
Was kind of delayed .... I will get some sort of permission based system in soon. :) The permission node will be for each individual block. I will also be adding a command ot edit it all in game. :)
-R
-
View User Profile
-
Send Message
Posted Aug 6, 2013I would love a set of permissions. I think the permissions would add a great feature to the plugin cause it will expand what you can do with it just with ranks themselves!
-
View User Profile
-
Send Message
Posted Aug 2, 2013@raum
@Scripthen
i was just about to ask for permissions :P was looking for a nice perk for my miner ranks.. this would do perfectly :D
-
View User Profile
-
Send Message
Posted Aug 1, 2013@Scripthen
Wow, never got notified of another response - sorry about the delay :P I'll add something like that for v3.0 within the next week ro so.
-
View User Profile
-
Send Message
Posted Jul 3, 2013@raum
@raum Thanks for your reply! Permission to payout for those with the permission node (so each item).
newbies: - blockeconomy.pay.5 - blockeconomy.pay.6
can only receive payouts for item 5 and 6.
-
View User Profile
-
Send Message
Posted Jul 3, 2013@Scripthen
That would be possible - Would the perm requirement be necessary for each item? or just as a singular "only work for this group"?
-
View User Profile
-
Send Message
Posted Jun 26, 2013Good work! So far this is a good replacement for my old payout system using GB.Rewarder! Though, would it be possible to payout based on permission node?
Example: blockeconomy.pay.<ID> will only payout to a group with the ID?
I think it will be a great addition to pay-per-rank. Keep up the good work! -S