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.
@Goobt
if you want to use a /pay command without sharing the emeralds you can use the /pay command from your economy plugin. and you can choose in the config.yml if you want a total sync with the account. if "enableItemOnEarn" is set to false you just have to use commands or cash dispenser to take emleralds from your account and the money you earn is send to your bank account and not in emeralds in your inventory.
@lucasdidur
what do want to be able to do with an api ?
@tarkus80
i'am working on rewrite a large part of the plugin to accept multi currency but that will take time...
What happens if someone /pays you? You get the money? Couldn't you make it so it puts it in the bank, so you still have to carry your money around, but the money is completely emeralds?
Could you make an API to make plugins compatible with EmeraldEconLink?
@fonkfader
the issue with iron is understandable, but might it be possible to make that optional? i am thinking off adding some more usability, because if you have a lot of emeralds, you will normaly craft them to blocks, but if you need them you have to convert it first back to single emeralds and then to be charged. in my opinion it would be more nice if the plugin handles this like:
1 emerald = 10$
1 block of emerald = 90$
If i have 1 block and 2 emeralds in my inventory, and i have to pay 100$, the block and 1 emerald will be removed.
or if i have to pay 70$ the block will be removed and 4 emeralds will be left in the inventory.
@tarkus80
it's because you're debited when you craft the emerald block, so the money is stored in the block not in your account, i make it work like this because, for example if you use iron as currency you will debited when you craft tools or other things too.
@fonkfader
the block support seems not to work correctly. I have crafted a block of emerald and used my economy plugin (essentials) to take the amount of 9 emeralds... but the block is not been removed.
So do I have to use a permissions plugin? Or is editing the permissions.yml sufficient?
@lucasdidur
emeralds blocks are already supported, if you craft one your account is debited from 9 emeralds (90$) if you uncraft it you will be credited from 9 emeralds. that work too if you use another items than emeralds as money when you craft tool or others things...
Add support to Emerald Block = 9 Emeralds
created a ticket.
@fonkfader
Do I HAVE to use a permissions plugin? I've currently just got the permissions.yml with the parent node for use and dispenser. The reason I'm not using a plugin is because I have no idea what I'm doing when using one; editing the yml with http://www.wi-alliance.com/yamlhelper/ is just simpler for me.
@monstercat101
you can craft them to emeralds block or turn in config "EnableItemOnEarn:" to false, iam working on a version with multi curency but it not ready at all for the moment.
Hi thank you so much for creating this plugin! Is it possible for it to be so the economy registers emerald blocks in your inventory as part of the economy, because emeralds are spamming my inventory. please and thankyou for your time :)
@leagris cela ne vient pas des messages car ils sont envoyé par une methode supporté par les derniers builds, de meme pas de deadlock connus car les processus sont clairement defini sur certaines taches et ne s'entrecroisent pas. le soucis a mon avis vient du fait que tes infos d'economie sont stocké sur mysql cela doit ajouter enormement de latence au calculs du plugin, car il demande acces a ces informations tres régulierement, j'ai deja fait l'experience de certains plugin comme karmicshare qui avait beaucoup de mal a recup les information rapidement sur le serveur.
Ce plugin cause d'énormes lags sur mon serveur donc je ne l'ai pas testé plus de 1/4 d'heure.
Dommage, l'idée est excellente.
J'utilise iConomy en BDD MySQL, multiverse multi-inv. Je n'ai pas testé de désactiver la notification dans le chat. Bukkit a rendu les chatevent assynchrones dans et dans un thread séparé. Les anciens events synchrones sont passés deprecated car maintenant ils bloquent le thread principal du serveur pendant leur traitement. J'ai idée que c'est le cas ici ou un problème de nature similaire avec un deadlock sur les accès inventaires pour la synchronisation.
@GintaSama
what permission plugins you use and how did you set the permissions ? i don't think others plugin can interfer with EEL permisions.
I'm currently using:
And I can't seem to get permissions to work for EmeraldEconLink. Is there any of the above that may be interfering? Or is there any explanation that could help fix my problem?
Ok, I'll wait for that you add this function.
Until that time the "plugin" is almost perfect :D (just kidding)
:)
@lucasdidur
there is already this node but i miss to add it in the plugin description...:)
@Q2Lummox
hum have already thinking about that but that will take some time.
Could you make eel.dispenser.use permission?