CraftConomy
CraftConomy is a simple, lightweight and yet very effective economy handling plugin. It provides a very easy API for the developer to use. Manage your whole server in-game money with this plugin! Lottery, Shops, Payments, Killing reward, Anything! Your imagination is the only limit you can encounter!
Latest version: 3.3. Compatible with Craftbukkit 1.8 (1.7.9 too!)
- Download
- Found a bug? Have a suggestion?
- GitHub
- irc.spi.gt #craftconomy
- Javadoc
- Documentation
- Translations
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
Features:
- Simplicity: This plugin is a simple drag & drop to use with a in-game setup wizard!
- Multiple data storage: Choose between a vast array of data storage for your player data (Currently only SQLite/MySQL but more to come!)
- Multi-World support (Have different balance between worlds)
- Multi-Currency support
- Bank support
- PayDay support
- Convert from iConomy / BoseEconomy / Essentials / Feconomy (Dev build)!
- Very fast!
- Supported by Vault!
- And much much more!
Todo
- Add the Interest system
Update Checking
This plugin utilizes Gravity's update checker to notify when a new version of the plugin is out, it will not automatically download the new version. It also notifies the admins that a new plugin version is available. This can be enabled ordisabled in the config.yml. To disable update-checking, set updates.check-for-updates to false. To disable admin notifying, set updates.notify-admin to false.
Metrics Collection
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
A unique identifier The server's version of Java Whether the server is in offline or online mode The plugin's version The server's version The OS version/name and architecture The core count for the CPU The number of players online The Metrics version Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.
@xDrapor
Only way I found to make it work was to remove the database files, change the config and launch server to generate a new database file. That way it seems to keep the new currency name. If you change it again afterwards it will brake. Downside by doing it this way, is that it will reset money values. (basicly, if playerA has 3 000 Dollars, it will reset to whatever is the starting value in the config, ex: 30 whateveryournewcurrencynameis)
Hope this helps if anyone else has this issue.
After a little troubleshooting, i nailed it down to currency names. When you change it, everything breaks. I thought it was the multiworld option, but as long as it functions, im happy.
Not sure, but when I use this, factions and towny fail to work (using the latest dev build posted). The commands seem to double-execute. well heres my stack-trace when I leave a faction
http://pastie.org/4155764
Heres my stack trace when I join a faction
http://pastie.org/4155789
Note that I tried v1.6.8 and 1.7.5b of factions
Chestshop also doesn't support this plugin...
Seems to be all working now, thanks a bunch.
@Niverive
@hahaimpoor
http://jenkins.thebigdigmc.info/job/Craftconomy/5/artifact/target/Craftconomy-2.3.5-SNAPSHOT.jar should fix it.
when I try /money or any other command that doesn't use the help argument it seems
10:02:07 PM CONSOLE: exception executing command 'money' in plugin Craftconomy v2.3.5-b4
10:02:07 PM CONSOLE: java.lang.StringIndexOutOfBoundsException: String index out of range: 2
When starting with the tables dropped
10:14:55 PM CONSOLE: [SEVERE] Error occurred while enabling Craftconomy v2.3.5-b4 (Is it up to date?)
10:14:55 PM CONSOLE: index out of range: 0
10:14:55 PM Vault][Economy: Craftconomy hooked.
Get this from trying to use /money on an OP accout, fresh from the download:
I am running tekkit with a lot of plugins, so could easily be a conflict.
@Atspulgs
It may be related to your currency name.
Im not sure if i did something wrong in the config file but im getting this error.
New release! This is a bugfix release!
http://dev.bukkit.org/server-mods/craftconomy/files/8-3-2-5/
@xboxhacks
Known issue. Somewhat fixed it. It displays a odd number of coins tho: http://jenkins.thebigdigmc.info/job/Craftconomy/2/artifact/target/Craftconomy-2.3-SNAPSHOT.jar
2012-06-09 14:01:45 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'money' in plugin Craftconomy v2.3.1-b171 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NumberFormatException: For input string: "0612033714807" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at me.greatman.Craftconomy.Craftconomy.format(Craftconomy.java:350) at me.greatman.Craftconomy.Craftconomy.format(Craftconomy.java:323) at me.greatman.Craftconomy.commands.money.OwnMoneyCommand.perform(OwnMoneyCommand.java:29) at me.greatman.Craftconomy.commands.BaseCommand.execute(BaseCommand.java:58) at me.greatman.Craftconomy.Craftconomy.handleMoneyCommand(Craftconomy.java:275) at me.greatman.Craftconomy.Craftconomy.onCommand(Craftconomy.java:240) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 12 more
@greatman321
This is the error. It's multicraft so you have to read it from bottom to top.
So is there transaction logging implemented in this plugin? I am seeing a flag called "Logging" in the config file, but not sure if this is what I think it is? Thanks!
@nhoclesnar
Need the error thrown in the console to be able to help you.
Players' account randomly messed up, and the /money top dollar (my currency is dollar) doesn't work! Both give me internal error. I'm not using any other plugin. I am sure about it. I finally have to /money remove [account] to remove that player account and let him make a new one.
@nhoclesnar,
Well I'm confused because none of those are listed commands. Have you got the right plugin?
I get this error. When I use /money delete [account] or /money reset [account], it says that doesn't exist. But when I use /money add [account], it says account already exist. It only happens to that one player.
First, I am not a java programmer, so this is all a bit new to me. if I am wrong sorry! Also, I realise my last post was at least partially wrong - it is clear that player.getWorld() is intended to get the sender's world, not the recepients.
That said, been having a bit more of a look and I still think it is down to a bug in multiworld support. Looking at the offending line 168 in addMoney. it seems to me that player = null at the time this is evaluated. Could this be the cause of the error?
The problem below seems to be in your mulitworld support. I only looked very quickly and wont pretend to understand your code, but in "addMoney", when multiworld is enabled, you seem to do a test for which world the player being paid is in. This would presumably fail if the player was not online.
I disabled multiworld and the shops are all working now.