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.
Im going to give it a shot and come back.
@slimpyman
you have to setup crafteconomy before running my plugin.
im trying to use this with cratftconomy and its spitting nothing but errows are just spitting out like crazy. in fact i am just trying to JUST have emeralds as the currency with no banks or dispensors or anyhthing. just simply for this to bea bridge for between plugins that do auctions and bountys and that kind of thing.
@andy83pl
your account will be debited when you take off the items of your inventory.
example :
1) your bank account have 100$ you take in a sign dispenser 10 emeralds, your account still have 100$ but the money is in your inventory. if you drop an emerald your account will be debited from 10$ and your inventory get one emeralds less. then if you buy in shop something that cost 10$ you will be debited and your inventory get one emeralds less.
2) your bank account have 200$ you take in a sign dispenser 10 emeralds, your account still have 200$ but you have 100$ of your money in your inventory. if you drop an emerald your account will be debited from 10$ and your inventory get one emeralds less. then if you buy in shop something that cost 10$ you will be debited but your inventory still have the same numbers of emeralds because you have enough money to pay in your bank.
if you set "EnableItemOnEarn" on TRUE in config.yml your inventory will be totally sync to your account. so dispenser became obsolete, but you have to store all your money (as emeralds) in chest.
could u post a video on how to set it up and such...cant figure out how to get it to work...
you are a savior. Thank you. I checked tekkit, no known date as to when they will update... ><
@dragonfire967
bukkit, mcp & tekkit 1.2.5 compatible version here : EmeraldEconLink 1.4.2 Tekkit Edition (doesn't support emeralds :) ).
ok, thanks for the reply. Any idea when it might be possible to make a compatible version? I'm going to head over to tekkit and see when they will release an update for 1.3.1
@dragonfire967
no the plugin will be break because of the merchant interacts, so you have to wait an mpc/tekkit update or if i got the time i will make an compatible version for 1.2.5.
hey, I like the idea behind this plugin, but one issue. I don't think I can use it on my server. I am running Tekkit that is only up to 1.2.5-R4.0 bukkit version until they update the mod. Is it possible to still use this with my server even though this is for 1.3.1, or can you make a release for the 1.2.5 for use with tekkit servers? I have been looking for a plugin that does this, but your is only one I've found so far.
Thanks a bunch! I like your plugin!
@MaikGrothe
use permission ex or another one they will work fine with bukkit 1.3
@fonkfader very cool thanks... buuut - i know im a never ending idiot- whats with the cash dispenser.. i can put a sign with the [take/deposit]... but then?... it tells me something about permissions i think, but i have no permission plugin yet( cant find one for 1.3.1)??
@MaikGrothe
the account of EEL is the account of your economy plugin. if you have 100$ on your economy account and you set in config 1 emeralds = 10$, you can have just 10 or less emeralds in your inventory but your balance still have 100$ (because you still have the emeralds in your inventory). if you loose/give the 9 emeralds(90$) your account wiil be set to 10$. another thing if you want players have to store their money in emeralds you must set the "ItemOnEarnMoney" to true in config and your economy account will be totaly sync to the numbers of emeralds you have in inventory.
aawwww never mind... i think the problem was the economyplugin... changed to BOSeconomy... thx
but...(sorry if im a dumbass) I dont get how this works with an economy plugin... i have BOSEconomy an EEL... and now?... I can take an give money with both plugins, but they are not linked or something... The account from eel has 9 emeralds for example and the boseconomy account has 100 whatever?... can someone explain something how to do it?... for example i would like to have a real bank that can be attacked and must be protected . and u have to go there to store your emeralds, but u can pay from your pocket
@andy83pl @fengchiu1997
for the 1.4 i will build it with java 6 . i will also change the blocks support for a more lighter and less bugged system.
@MaikGrothe
i think its fixed in 1.3.1.
Yes. Please stay in java 6 until bukkit not require java 7. I got 44 plugins on server and yours is the only one need java 7.
@fonkfader log?... sorry dont know what you mean :(
this?:
09:58:45 [SCHWERWIEGEND] Could not pass event PlayerMoveEvent to EmeraldEconLink org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:213) at net.minecraft.server.Packet10Flying.handle(SourceFile:136) at net.minecraft.server.NetworkManager.b(NetworkManager.java:276) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NullPointerException at net.milkbowl.vault.economy.plugins.Economy_Craftconomy3.getBalance(Economy_Craftconomy3.java:123) at me.fonkfader.EmeraldEconLink.EmeraldEconLink.SyncEvent2(EmeraldEconLink.java:2738) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330) ... 14 more
@fonkfader
Thanks for all the help! What If I don't have java 7... isn't there any other way for it to work? can't you compile your code against java 6?
@QBcrusher
i have submited the 1.3.1, this version can directly convert in your inventory the money you earn . This feature is optional for the same reason i told you before. you have to turn "EnableItemOnEarnMoney" to "true" in the config.yml if you want to activate it.