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.
There is a massive bug with this plugin and shopkeeper plugin. pm me for more information. It's important to fix this! because players who know the bug can get so much money!!
wont work. i allways get an error. (i have not edited any configs or that) bukkit thinks it is an outdated version!
@RasCas
thanks for your translation added to the plugin description :)
@JM120897
it's because you have set "EnableItemonEarn" to true
When I deposit money in the [deposit] sign, it gives me the my emerald back, why?
Here's my German local
Awesome!
I have a request. Please include tracking of SignShop exchanges. When emeralds are exchanged through signshop as items and not currency, EmeraldEconLink misses them and leaves serious duping potential.
Thanks.
...edit... I'm an idiot with too little sleep.. I wasn't running the latest version and I noticed one of the later revisions mentioning that a duping bug was fixed.. Will test and probably fade back into obscurity when I realize I made this post for nothing.
Awesome plugin! Thanks for all your effort.
...edit again... Wow.. looks like 1.6.5 still didn't fix my duping bug. How to reproduce: Make any shop that takes emeralds as items (not currency), When the items are taken, econlink misses that event and doesn't adjust your balance. End result: your balance is increased further when you take your emeralds from the chest they were transported into.
Still an awesome plugin! Eagerly waiting for a fix to this. Thanks.
is anyone having problems with right click actions with this plugin? using bows it's like lagging, i got EnableItemOnEarnMoney: true with CurrencyCore and EcoAdventurer
@Q2Lummox
Right.
I'd like to get emerald as factor 10 and emerald_block as factor 90 with optional autopacking. Autopacking option to set amount before converting emeralds to blocks or vice-versa packamount: 64 #will create blocks as soon as you have more than 64 minor (emerald) packamount: 9 #will create blocks as soon as enough unit to create a block It will need to convert back to minor items as soon as you need to split apart a 9 item block. Let say I have 3 blocks of emerald and 5 emeralds. If I pay 7 emeralds, I'd automatically get the remaining 2 blocks and 7 emeralds.
[français] Tout à fait: J'aimerais avoir les émeraudes en facteur 10 et les blocs d'émeraudes en facteur 90 avec compactage automatique. L'option de copactage fixerait le seuil de compactage ou décompactage. packamount: 64 #créera un block d'émeraude (majeur) dès qu'il y a 64 ou plus émeraudes (mineur) packamount: 9 #créera un bloc d'émeraude (majeur) dès qu'il y aura de quoi en former un avec 9 emeraudes (mineur) Cela devrait convertir les blocs (majeur) en objets (mineur) dès qu'on entame un bloc majeur lors d'un paiement (et vice-versa) Admettons que j'ai 3 blocks d'émeraude et 5 émeraudes. Si je paye 7 émeraudes,j'obtiendrais le reste comme 2 blocs et 7 émeraudes..
Your plugin is fantastic - I really enjoy it. The only issue that I am having with it is this: http:pastebin.com/aJjy99Xe
It is not causing any interference with the gameplay, but it does spam the console immensely. I have the most recent version of this plugin.
Hm, just wondering, what happens when i set sync emeralds and money to 150 and i buy something for 100. Will i loose 1 emerald in my inventory and the 50 rest are stored on my bankaccount?
And what happen, if i use multiverse inventories? Will i have different amounts of cash on my bankaccount?
Please, add mayor/minor multicurrency support! ;(
just as a question:
is it possible to check if an emerald is put into a chest or enderchest? If yes it would be nice, if the amount does not decrease, if someone puts the emerald into a chest.
essentialseco uses /balancetop as an overview to see who is the richest, but with the emeraldlink (and putted the emeralds into a chest) the money is still zero :(
@pr0d0g8
Emeraldseconlink doesn't create a new account it just use your existing economy account and calculate/sync how many emeralds you can have in your inventory,etc...so in EnableItemOnEarn=false the money is take everytime from your account and from your inventory only if needed. if you use a /money pay command the money is send dirctly in player account not into emeralds, if you want to send into emeralds you have to use /eel send [amount] [player] .
2 scenarios with EnableItemOnEarn=false
1. I /money pay you. First, it checks if I have enough emeralds I am holding. Then, it doesn't add money to your /money account, but instead puts emeralds in your bank, right?
2. Towny charges me taxes daily. So where does it try to take the money from, my inventory, my /money account, or my emerald bank?
Awesome plugin btw
this is the best plugin EVER i love it thank you i hope you keep up the good work!
@fonkfader
Thank you.
You should try to implement e.isCancelled() on start of event and EventPriority.LOW so if any plugin cancel InventoryClickEvent Or PickupItemEvent, he not will gain money.
@lucasdidur
so you use custom inventories in your shop plugin ? i will add more cancel event checks (did you try the 1.6.3 there is more in it) and better support for custom inventories so you will don't need to change your code.
@fonkfader
Cancel the gain money when you click on an emerald if InventoryClickEvent when is canceled.
Also would like a fix for PlayerPickupItemEvent when also is canceled.
So I then I can make my shop plugin compatible, without player gain money, which works to set the value by clicking on the emerald.