EmeraldEconLink 2
This plugin make possible to uses emeralds and/or others items as currency and is hooked to your economy account with vault. If you loose / drop emeralds, your account will be debited for the amount you set in the config, or credited if you take one. I recommend this plugin for any PVP or RP server, with it you can add a lot of funny interact, that only depend how you config the permissions of the plugin and your economy plugin :
- make real bank that can be attacked.
- be careful when you go deal / buy with others players
- keep on eye around when you go to the cash dispenser
- deal with the villagers and earn or lose money
- make treasure chest / safe
To run this plugin you MUST have Vault and an economy plugin.
To run this plugin you MUST have Vault and an economy plugin.
Features
- uses emeralds and other items as real currency, the plugin support multi currency, just set your items in the configuration.
- compatible with a lot of economy plugins thanks to Vault.
- the plugin hook into your existing server economy, so your players still have the same account and amount of money.
- fully configurable ( drop amount, localisation, items,etc...).
- command and permission to change your money account into emeralds/item or send to other players.
- cash signs dispensers, deposit and change.
- support trade with villagers.
- support "give" commands (if you want to use command block or similar to give items)
- support items given in Gamemode 1.
- compatible with backpack plugin.
- compatible with Shopkeepers plugin.
- multiworlds support.
- [OPTIONAL] set in config if you want a total sync to your economy account. (EnableItemOnEarnMoney: true). you will have the same account amount of money in items in your inventory.
Commands
/eel (aliase : /cash) :
- /eel info : display current serveur item values and others informations
- /eel take [amount] : take emerald from your account.
- /eel add [amount] : deposit emeralds to your account.
- /eel send [amount] [player] : send in currency to another player the amount given.
- /eel reload : reload the configuration
- /eel change [ID] : change the current stack in your hand to ID
Signs Cash dispensers
- to make a cash dispenser just write on the second line of a sign : [take]
- right click to change amount - sneak + right click to change item type - left click to take
- to make a cash deposit just write on the second line of a sign: [deposit]
- left click will deposit the item in hand - right click will deposit all the items corresponding the item in hand
- to make a cash Change just write on the second line of a sign: [change]
take in hand the stack you want to change - right click for change currency - left click to change
Permissions
eel.* : parent node for :
- eel.info: allow to access the /eel info command
- eel.take : allow take emerald from your account
- eel.add : allow deposit emeralds to your account
- eel.send : allow send in currency to another player the amount given.
- eel.change : allow change the currency in and to another one.
eel.dispenser.* : parent node for :
- eel.dispenser.add: : Allows you to add currency to account in dispenser signs.
- eel.dispenser.take: Allows you to take currency from account in dispenser signs.
- eel.dispenser.change: Allow you to use change signs.
eel.dispenser.create* : parent node for :
- eel.dispenser.create.take : allow create sign dispenser to take emerald from your account
- eel.dispenser.create.add : allow create sign dispenser to deposit emeralds to your account
- eel.dispenser.create.change : allow create sign change.
Configuration
the default item is Emerald but you can change by gold, iron, diamond. I recommend to use emeralds if you don't want to disturb the gameplay.
itemsId: - 388 - 265 - 266 - 264 - etc...
set your item used as currency here.
itemsCost: - 10 - 20 - 40 - 80 - etc...
the amount of money corresponding.
itemsCanBeBlock:: - 388 - 265 - 266 - 264 - etc...
set here wich items can be stacked as block
blocksId: - 133 - 42 - 41 - 57 - etc...
set here the corresponding block
EnableItemOnEarn: false
true if you want the amount of emeralds in inventory to be sync with your account.
oneItemOnEarnMoney: false
true if you want only the first item to be send in EnableItemOnEarn mode, else the plugin automatically calculate what items can be send
tiksPerChecksForEnableItemOnEarnMoney: 100
choose the rate for balance checks in EnableItemOnEarn mode (20 ticks = 1sec)
DisableChatMessage: false
true if you want to disable chat notifications.
DisabledWorlds: - creative - otherWorld
EEl will be disabled in this worlds
then configure the permissions nodes of your economy plugin and EmeraldEconLink to make the plugin work like you want.
Localisations
the default config is in french but you can change all the messages to your language, you can send me your localized config.yml if you want :
Videos
- old version
To-do
- item restrictions for signs dispenser,commands and ItemsOnEarn mode.
- automatic item to block stacking
- better sync with other plugins
- improve code
- drink a beer
Changelogs
2.1.1
- really better money change calculation
- fix checks when inventory can't be equal to player account.
- fixes some inventory calculation bugs.
- add itemId to /eel info
- fixe message for non currency items.
2.1
- add "INFINITE" items currency support,must be compatible with custom items/blocks too (mcpc/spout)
- add creative inventory support.
- add new config and parameters (please delete the old one before).
- add [CHANGE] sign and command (/eel change) to use with EnableItemOnEarnMoney mode
- change in EnableItemOnEarnMoney mode (see configuration section)
- change in change given calculation
- add /eel reload command
- add new permissions
- bugs fixes
- build for 1.4.5 bukkit
2.0.2 (Beta)
- better change given calculation.
- minors bugs fixes
2.0.1 (Beta)
- compatible only with 1.4.4 bukkit builds.
- fix command /eel add [amount] [itemID]
- adjusting the change given calculation
- other bugfixes
2.0 (Beta)
- compatible only with 1.4.4 bukkit builds.
- support 4 différents items.
- automatic support for items blocks if you choose gold,diamond,iron or emerald as money.
- new command /eel info (permission : eel.info)
- take/add commands will calculate the items you can receive, if you want only one type add the item id at the end of the command : /eel take 100 388 -> give you 10 emeralds(10$)
- compatible with "give" commands.
- remove playerInteractEvent use sheduled task instead.
Known caveats
- item with data value (like lapiz) aren't supported yet
- this plugin is not friendly with economy plugin configured with mysql.
@MaikGrothe
can you post your log ?
and how do i update a bukkit server to java 7?... its a server i rented on a website... and all i get is: an internal error occured while attemting to perform this command.
I have the latest version of eel an vault... which economy plugin should i use (craftconomy)?
@fengchiu1997
yes you need update
I get this:
Could not load 'plugins/EmeraldEconLink.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/fonkfader/EmeraldEconLink/EmeraldEconLink : Unsupported major.minor version 51.0
I'm assuming that it is because I don't have java 7?
@fonkfader
hmm i see. is there any chance this plugin could support it in the way i described? id like to have it so peoples currency is always linked with whats in their account. if they have 0 ingots, they have 0 in their acc and nothing more. that way, it really is a challenge cause if they die they have no chance of saving their money
@Reneighd
when a transaction increase the money , the money wont turn into emeralds because that will be very problematic with a lot of plugins. for exemple i use jobs on my server, and if i recieve money in emeralds i will have a full inventory of emeralds every time. same for shops transaction, if i have a full inventory i will never receive my money. so for that you can use the command "/take" or for more role playing you can make a cash dispenser and your players just have to go take money when they need it.
but in your explications the problem is your set emeralds and money together , so can't you just reward with money and players can get emeralds in return with a cash dispenser ?
Yeah great, it has fixed somewhat of the issue, but:
Then i'm telling SimpleSpleefEvolution to get 1 Money from every player joining the game it collects 1 money but 1 emerald as well, what's fine but i've also told SimpleSpleefEvolution to give the winning person 1 money per player joined the game. At this point EmeraldEconLink only increases the money but not the emeralds.
However when i'm telling SimpleSpleefEvolution to get 1 money from every player joining the game as entrancy-fee and to give the winning person Emeralds as Itemprizes and money per joined player it works for me perfectly as far as I set the maximum of players to 2 because the "giveitemprice"-Method of SimpleSpleefEvolution doesn't matter about how many player are on the field. Maybe it's a little bit complicated to explain. I will present you the certain points of the config file of SimpleSpleefEvolution with discription for a better feel:
So in this configuration SSE will get 1 emerald from every joined player and give the winning person 2 money for 2 players on the field plus 2 emeralds as itemprize. But what happens if I increase the number of max_players to 4? The plugin would every time just give 2 emeralds, so there is a sunk and emeralds and money are unsynchronized again.
Nethertheless I love the idea behind this plugin. It's an amazing work you've did and thanks for the quick fix.
btw: SSE doesn't support any items as entry-fees, alast... I thought about to recode SSE a bit to completely ignore money and just to take and add Emeralds per player but then I found your plugin last night offering a possibility to use the old (for me) outdated "money-per-plugin-system" in comparisons with the (more or less) new possibilities of emeralds.
@squeezer2k
yes i've uploaded the wrong version i fixed that sorry. you can download the fixed version HERE
got this when starting your plugin (1.3):
http://pastebin.com/QsnaE8q8
@Reneighd
1.3 is waiting for approval i add an inventory sync to account.
@QBcrusher
emeralds (or ingots) are just currency so your balance is not your currency you can have 100 000 000 $ on your account and only 20$ on you (and 10 000$ in a chest). and another thing if you sell something its your account that is credited not your inventory.
oh and heres another bug. if you are using a multiworld server with separate inventories per world, it does not deduct your economy balance when you go into the world.
example: you have 500 ingots in world 1. you then travel to world 2 where you have nothing. if you check your balance on boseconomy, you still have 500 ingots.
I havent tested it thoroughly, and i have a feeling if you spend the money in world 2, it will take the ingots away in world 1, but this could still be a problem if players buy items in a world they never played with money they earned in a different world
yeah i have the same problem, if i use another plugin to take economy money, it doesnt deduct the item that is used as money as well. like if i buy something from a signshop, it will deduct 5 money from my account, but it wont take the gold ingots as well (i use gold ingots instead of emeralds)
it does the same with selling stuff. if i sell something for 5, it will add the money to my boseconomy account, but not give me ingots
@Reneighd
i dont use it like this on my server but i see what can i do to sync all transactions with inventory.
Doesn't work very well for me yet. I want to use this plugin in cooperation with money-prizes and entry-fees of the Simple Spleef plugin. But whenever I pay the entry-fee Essentials-eco degreases my amount of money but doesn't degrease my emeralds stacks in inventory as well. Thus the amounts (atcually being linked to each other) aren't equal anymore and i've got to drop emeralds in order to make EmeraldEconLink synchronizing. I dont know whether I need a special economy plugin or somewhat else or it's still the way this plugin is working. Btw, yeah, I'm using Vault as recomented by both plugins.
@saimon13
update to java 7
@fonkfader
Dosen't create the config file nor the folder, no reaction in console. I mean no stuff about the plugin at all..
Edit: http://pastebin.com/z5HvGyYL heres the error
version 1.2.1 is waiting for approval, that fix bugs with inventory or you can download it here
@Htz
oui grosse erreur de ma part j'avais complétement oublier ces interactions la; je corrige ça le plus vite possible.
Salut,
Il me semble avoir trouvé un petit bug, je ne sais pas à quoi il s'étend mais voilà : quand on ouvre un coffre et que on pose le stack d'émeraudes dedans, tous se passe bien, le compte est débité. Mais si je pose un stack d'émeraudes sur un stack complet (d'émeraude) le compte est quand même débité des 640 émeraudes, alors quemon stack est toujours dans ma main et que si je le pose à coté, il sera débité une seconde fois. deuxième chose, si je pose mes émeraudes sur un autre objet (une porte par exemple) le débit ne se fait pas ! et je peux reprendre mes émeraude qui me seront alors créditées. Avec ces bugs, les joueurs de mon serveur peuvent soit se retrouver à sec en quelques minutes, soit dupliquer leur argent... :/
@LordBoos
is not implemented yet, it's for change the cost of the transactions with the NPCs (pnj in french).