Currency - Nothing extra
core version: 0.9.0
basic version: 0.8.1
Currency is a new method of handling an economy in your Bukkit server. Unlike most other economy plugins, Currency is broken into two separate plugins, one containing the database and account handling (CurrencyCore) and the other containing the commands (CurrencyBasic). Even more different, CurrencyBasic is written in JRuby using RubyBukkit making it easy to edit in real time to suit your needs.
Why another economy plugin? An economy management plugin does not need to do more than hold data. It should be utilized through it's API in other plugins to interact with the server's players. This is exactly what this plugin does, as CurrencyBasic is entirely optional and can be easily replaced/edited.
Developers API: http://dev.bukkit.org/server-mods/currency/pages/developers-api/
Commands & Permissions: http://dev.bukkit.org/server-mods/currency/pages/commands-permissions/
Bukkit Forums: http://forums.bukkit.org/threads/econ-currency-v0-1-nothing-extra-1-0-1-r1.52133/
Does NOT work with 1.5.2, but a 1.7.9 version is being released today.
Does this work with 1.5.2 Iif not will you be updating?
does this work for Minecraft also?
Does this mod offer command for when you place or takeout items in a certian chest money is added or taken away from the person that activates it.
CurrencyBasic is written in JRuby using RubyBukkit making it easy to edit in real time to suit your needs.
The sources files are "CurrencyBasic.rb" Why ".rb" ? I've doing a plugin (ValidServ) and my sources files are Java sources files...
That is what the plugin is aimed at doing. Allowing people to freely control their economy without any binding them to anything.
Glad you like it!
Hm. The error disappeared when I added ebean.properties. Wierd.
Anyways, I love this plugin! I had to code an external plugin to replace CurrencyBasic, but it works perfectly. :)
It would be nice for it to work with SCS.
@Tauryuu ebeans.properties is unneeded, and is just a warning. It seems it may be a misconfiguration with bukkit persistence in the bukkit.yml. Can you post that for me?
Where do I get ebean.properties? I looked everywhere and I couldn't find the file. Now I get these giant errors without it.
EDIT: I don't think it's the ebean.properties issue, after doing some research, but this error still pops up once in a while.
03.03 05:24:30 [Server] INFO Disconnecting dragonlord9234 [/22.214.171.124:2718]: You are not white-listed on this server! 03.03 05:24:30 [Server] SEVERE ... 12 more 03.03 05:24:30 [Server] SEVERE at com.avaje.ebeaninternal.server.transaction.JdbcTransaction.rollback(JdbcTransaction.java:607) 03.03 05:24:30 [Server] SEVERE at com.avaje.ebeaninternal.server.lib.sql.PooledConnection.rollback(PooledConnection.java:752) 03.03 05:24:30 [Server] SEVERE at org.sqlite.Conn.rollback(Conn.java:351) 03.03 05:24:30 [Server] SEVERE at org.sqlite.DB.exec(DB.java:76) 03.03 05:24:30 [Server] SEVERE at org.sqlite.DB.throwex(DB.java:370) 03.03 05:24:30 [Server] SEVERE Caused by: java.sql.SQLException: SQL logic error or missing database 03.03 05:24:30 [Server] SEVERE at java.lang.Thread.run(Thread.java:636) 03.03 05:24:30 [Server] SEVERE at is.currency.queue.AccountQueue.run(AccountQueue.java:24) 03.03 05:24:30 [Server] SEVERE at is.currency.queue.AccountQuery.execute(AccountQuery.java:16) 03.03 05:24:30 [Server] SEVERE at is.currency.queue.impl.AccountCreateQuery.run(AccountCreateQuery.java:25) 03.03 05:24:30 [Server] SEVERE at com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1567) 03.03 05:24:30 [Server] SEVERE at com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1577) 03.03 05:24:30 [Server] SEVERE at com.avaje.ebeaninternal.server.persist.DefaultPersister.save(DefaultPersister.java:282) 03.03 05:24:30 [Server] SEVERE at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveRecurse(DefaultPersister.java:308) 03.03 05:24:30 [Server] SEVERE at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveVanillaRecurse(DefaultPersister.java:361) 03.03 05:24:30 [Server] SEVERE at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveVanillaInsert(DefaultPersister.java:381) 03.03 05:24:30 [Server] SEVERE at com.avaje.ebeaninternal.server.core.BeanRequest.rollbackTransIfRequired(BeanRequest.java:107) 03.03 05:24:30 [Server] SEVERE at com.avaje.ebeaninternal.server.transaction.JdbcTransaction.rollback(JdbcTransaction.java:595) 03.03 05:24:30 [Server] SEVERE at com.avaje.ebeaninternal.server.transaction.JdbcTransaction.rollback(JdbcTransaction.java:614) 03.03 05:24:30 [Server] SEVERE javax.persistence.PersistenceException: java.sql.SQLException: SQL logic error or missing database
@Sleaker I simply wanted to use a library that is already built in Bukkit rather than using my own Sqlite or Mysql library. I am aware eBeans has issues, and would like to address them in the future. Although it is really high on my priority list, I have been too busy with other projects regarding school work and obligations in my life to complete this however. Regardless, at the moment, I believe CurrencyCore is fairly stable, and that is also a very important aspect of this plugin.
I know you're trying to make this lightweight, but the inclusion/use of avaje eBeans seems to defeat this idea completely. Using eBeans as the persistence method seems counter to what your original goals of keeping it light and functional in all cases (see bukkit forums on why the eBeans persistence has issues). Any thoughts on this?
@bigscary RubyBukkit is simply a new PluginLoader, as I've already stated, and in my opinion should be implemented in CraftBukkit itself. It adds no additional load to your server unless a plugin using it is installed. I believe using and installing RubyBukkit is very simple.
The reason I used it for CurrencyBasic is simply the ease of use, and the fact that writing plugins using RubyBukkit really hasn't been done before. Developing CurrencyBasic in JRuby, managing it on your server, and updating it is extremely easy as well.
If I continue to get requests for a java based CurrencyBasic, I will create it. However, I don't think it is much to ask for people to install a plugin which I think is essential; for me anyway.
I agree with Scribble. If you can do without the additional plugin requirement, please drop it. Many of the very popular economy plugins don't have dependencies. If simple is your goal, aim for one download with everything in it.
Remember server admins are already downloading another plugin to make yours do something (for example, another plugin which implements a server shop), so asking them to download yet another thing separately, and to choose between two different JARs is asking a bit much.
@ScribbleQ RubyBukkit is simply a new PluginLoader for Bukkit designed to load ruby plugins, and is very lightweight and simple from my experience. Installing RubyBukkit is fairly simple if you follow the step by step installation guide as well.
Other than RubyBukkit, CurrencyBasic does not require anything extra, so it should not be a complicated setup. If you are truly having issues setting my plugin up, I will make a tutorial for those who need it.
Using java to recreate CurrencyBasic, in my opinion, is fairly pointless seeing as it runs perfect with RubyBukkit as it is.
I would HIGHLY suggest changing the CurrencyBasics plugin from a rubycraft scripted plugin, mostly because this plugin was supposedly designed to be a simple economy plugin. But what is simple about having to install multiple other plugins to make this one work?
@Infuscu Fixed with 0.4
Found another bug ..
/currency balance <other.user>
returns our own balance no matter what you do.