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.
Greatman, I am getting this error in Chestshop, which seems to be caused by users being offline when someone tries to buy from their shop. The author of Chestshop thinks this is a Craftconomy problem. Can you help?
2012-05-17 13:35:30 [SEVERE] Could not pass event PlayerInteractEvent to ChestShop
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:176)
at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:287)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:636)
at net.minecraft.server.Packet15Place.handle(SourceFile:39)
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:551)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.NullPointerException
at me.greatman.Craftconomy.Account.addMoney(Account.java:168)
at net.milkbowl.vault.economy.plugins.Economy_Craftconomy.depositPlayer(Economy_Craftconomy.java:146)
at com.Acrobot.ChestShop.Economy.Vault.add(Vault.java:14)
at com.Acrobot.ChestShop.Economy.Economy.add(Economy.java:26)
at com.Acrobot.ChestShop.Shop.Shop.buy(Shop.java:86)
at com.Acrobot.ChestShop.Shop.ShopManagement.buy(ShopManagement.java:21)
at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playerInteract.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
... 12 more
It would be great if there was a way for the Top list to include money in hand and bank accounts. We take away all money in hand on death, so people need to keep most in the bank. Currently the top list does not include the bank balance, which makes it next to useless to us.
Nope, the thing is not also automagically changing to false, it just stays true.
Hi greatman,
unless I am missing something the initial balance only seems to be set for the default world.
Our default world is creative and does not use money. I want to be able to set a default for another world. Is there anyway to do this without manually giving the default to each person after they first visit the other world? if not, any chance of adding this?
Thanks.
@Giinger
Hmm, try the /craftconomy currencymodify <name/plural/minor/minorplural> <Currency Name> <New Name> command. Your Currency Name would be your default one.
Still having my problem here when trying to convert from 2.2 to 2.3 -
@nhoclesnar
You add a section in the payday.yml file that looks like the default one, setup it like you want (By example 100 (Value) dollar every 1 (Inteval) minutes) and add the permission craftconomy.payday.PayDayName to the group you want to give that payday.
How do I define the money for PayDay? Do I put
- (group):(money)?
@adia1e
Read the Setup Guide section.
how i am transport iconomy accounts to craftconomy
About the factions issue, this can be fixed like this greatman (I know its rather a hack but I changed this with your github sources for our server) You will have to do the same for: addmoney,subtract money.
if (player != null) balance = DatabaseHandler.getBalanceCurrency(this, player.getWorld(), currency); else balance = DatabaseHandler.getBalanceCurrency(this, Craftconomy.plugin.getServer().getWorlds().get(0), currency);
Very very awesome plugin! But as a side note if running the jobs plugin, you get a number exception for the values (coins) being to long due to the jobs plugins math using double. My suggestion round up the coins before inserting into database so instead writing 200.0023923992919329 just write 200.00 otherwise your plugin throws alot of errors.
Hey, I was wondering if there is a way / you are planning a way to have better multi world options?
My suggestions would be:
Allow different worlds to share a balance, rather than all worlds having their own. For example:
World 1 / World 2 have a shared balance and transfer
World 3 is a different currency that doesn't transfer
Your Jenkins and dev links are broken. Just thought I would say in case you didn't know. Thanks for the awesome plugin =)
When attempting to convert from 2.2 to 2.3, I get this:
What exactly am I doing wrong? I set the flag in the config and it never changed to false.
With multiworld support is it possible to bind the nethers to the same account? e.g, I have world, world_nether, drugs and drugs_nether and i want the nethers to be connected to the same account as the main world. e.g Drugs and Drugs_nether
Hello,
I don't have an error, but since I've planned on switching to CraftConomy from iConomy 6 - I had to test all the plugins to make sure they work.
Tested on CentOS x64 Linux Server with 32 GB of RAM, 1 Gbps Port
Running Bukkit 1.2.4 Build #2124 with all the latest Dev Builds from above.
Only known issue which I don't think it's a CraftConomy issue is;
Simple Region Market and ChestShop doesn't work on 'Bank Accounts' which would be a neat feature, because in the server I'm head admin for is a 'Survival Base' Towns/Shops Server and with Towns, Instead of using the person who created the sign you could add the Bank Account on signs.
Currently, If you were to do /money create town_name or /money create shop_name and on the 4th line of 'Simple Region Market' you can add a players name on ChestShop you can add a shop_name on the 1st line, only ops can add these as their are no permission nodes to 'Grant Access' of changing names.
The easiest solution would be to support CraftConomy and add Bank Account support and then after adding interest, could add a tax option where we can tax town bank accounts.
Hey after i Updated Factions to newest version i got sveral times this error. http://pastebin.com/LUafUfHc CraftConomy is also on latest DevBuild...really on leatest
Also i think the Calculating of the currency is a bit glitchi....i use noe EcoCrature but if i have the option IntegerCurency: false i got always a error becuase they try to give me a weird amount of money but if i set than to "true" and give only full Dollars and not coins all is okay.
Forgoot it i fogured it out...some idiot staff spawned a shit load of money and than the top list brakes