-- Economy based core plugin for bukkit
iconomy / core Goto Github PK
View Code? Open in Web Editor NEWAttempting to get 6.0 out.
Home Page: http://dev.bukkit.org/server-mods/iconomy/
Attempting to get 6.0 out.
Home Page: http://dev.bukkit.org/server-mods/iconomy/
SQLite doesn't officially support DECIMAL(), it accepts it, but it casts it to INTEGER instead, so we may want to consider a change in how we handle decimals
possibly like a cash register and have iConomy shift the decimal itself
eg. inputting 2000 = $20.00 on a cash register
This will let us continue to support decimal values, but at the same time being more compatible.
This would all be behind the scenes stuff, players would still see and use decimals, it just would be stored as integers in the database.
The reason for this is because non-Java implementations of SQLite choke on DECIMAL fields and are unable to open the database.
Please turn the dynamic-function on!
I have to type /reload for reloading the database.
So if I change anyones' money in MySQL Database, i have to type /reload.
Earlier it reloaded itself. Please make it dynamic again ;)
Ok basically how i setup the server is they have to request access to build or do anything... now with this i would like that they are not even setup as a user until i get them in the builders group now with that just somthing that i would like to have if not already in the system.
I'm migrating from iConomy 2.x and one of the biggest features I'm suprised is missing is the ability to give (or take) a set amount of currency per hour.
On our server, we reward players who play on the server with 2 coins per hour. Besides helping to reward loyalty, it also works to boost the economy and keep it going.
Would you please consider putting this feature back into iConomy?
Many thanks :)
Would like some kind of :
/money set
to create a new account for NPC or player that did never connect to the game
And if possible (but less urgent for me) :
/money newaccount
/money delaccount
to create/delete account for any existing / non-existing player
Some server admins need it for my RealShop plugin. With it we will be able to give shop to player that have no iConomy bank account yet, and to NPC players !
(for my own server I can do that directly into MySQL, but some folks are not database administrators, and it would be easer for ops to do this in-game)
Thx.
I was just wondering if it was possible to add them to the table after they actually get money if they arent already on the mysql table because we run a whitelisted server and they are getting added even when they cant get on the server. I made a post in the bukkit forums about this but im about to fix that and figured I'd put it here.
Adding people on connect that cant even get on the server in the first place is a big resource waste for people that dont have much space and are limiited on how mush database space they can use.
As the title says, when downloading the .jar, I only get a folder named iConomy. I tried to rename it, but with no succes. If it matters, I'm on a Mac.
Hello,
I'm running the latest build of IConomy, but it doesn't seem to be updating balances. I'm running loads of plugins, the ones that use IConomy are:
LocalShops
BankAccounts
If someone can help me with this issue it would be great.
DanJames
if the database is disconnected & still not working, this would be another way to get it back up (without using hotswap)
could also be used to reload the configuration, so changes could be made without need for a server restart
got a really long error message, but the key lines in it are:
2011-03-11 20:53:47 [INFO] [iConomy] Failed to grab player balance: java.lang.NullPointerException
2011-03-11 20:53:47 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.Connection was implicitly closed due to underlying exception/error:
** BEGIN NESTED EXCEPTION **
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException
MESSAGE: The last packet successfully received from the server was46326 seconds ago.The last packet sent successfully to the server was 46326 seconds ago, which is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
STACKTRACE:
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was46326 seconds ago.The last packet sent successfully to the server was 46326 seconds ago, which is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
......................
at com.nijiko.coelho.iConomy.net.iDatabase.resultQuery(iDatabase.java:41)
at com.nijiko.coelho.iConomy.system.Account.getBalance(Account.java:48)
at com.nijiko.coelho.iConomy.system.Account.add(Account.java:119)
at com.pi.coelho.CookieMonster.entity.cmRewardHandler.GivePlayerCoinReward(cmRewardHandler.java:33)
......................
2011-03-11 20:53:47 [SEVERE] java.lang.NullPointerException
2011-03-11 20:53:47 [SEVERE] at com.nijiko.coelho.iConomy.system.Account.setBalance(Account.java:76)
2011-03-11 20:53:47 [SEVERE] at com.nijiko.coelho.iConomy.system.Account.add(Account.java:119)
I get this error, with a new generated iConomy folder (so it's not my settings that are messing):
12:29:31 [SEVERE] java.lang.IllegalArgumentException: Malformed pattern "#.##0,##"
12:29:31 [SEVERE] at java.text.DecimalFormat.applyPattern(Unknown Source)
12:29:31 [SEVERE] at java.text.DecimalFormat.(Unknown Source)
12:29:31 [SEVERE] at com.nijiko.coelho.iConomy.system.Account.toString(Account.java:142)
12:29:31 [SEVERE] at com.nijiko.coelho.iConomy.system.Bank.format(Bank.java:72)
12:29:31 [SEVERE] at com.nijiko.coelho.iConomy.entity.Players.showBalance(Players.java:118)
12:29:31 [SEVERE] at com.nijiko.coelho.iConomy.entity.Players.onPlayerCommand(Players.java:442)
12:29:31 [SEVERE] at com.nijiko.coelho.iConomy.iConomy.onCommand(iConomy.java:210)
12:29:31 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
12:29:31 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
12:29:31 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:229)
12:29:31 [SEVERE] at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
12:29:31 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
12:29:31 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
12:29:31 [SEVERE] at net.minecraft.server.Packet3Chat.a(SourceFile:24)
12:29:31 [SEVERE] at net.minecraft.server.NetworkManager.a(SourceFile:230)
12:29:31 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
12:29:31 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
12:29:31 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
12:29:31 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
12:29:31 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
is there a way to give money over time or do you have to give it to each player when you want to give them more
[iConomy] Could not execute query: java.sql.SQLException: database is locked
The actual bug here is whoever uploaded the jar with "-4.2" in the name instead of zipping it with 4.2 in the zip name and not in the jar's name.
really just an fyi: you should probably be using an ArrayList instead on a string array in Template.java
right now, if all of the nodes it checks for are missing, it will only add the last one it checks
also, upgrade() is called twice on load
(which means 2 of the 3 are added on first run, and need to run again to finish adding)
As of iConomy 4.1, iConomy uses a single tag for currency name regardless of how much money a player has. Using a plural is fine for 0-0.99 and for 1.01+, or using a singular name is fine for exactly 1.00.
I recommend adding a new [optional] config param Currency_Single: that if used, will use be displayed for 1.00 (and -1.00) and then use Currency: for everything else. If not set, then Currency: will be used for both.
This is just to add a level of professionalism to the user display.
Did some testing on my test server, and got some wonky results with pay/grant commands.
Using: cb493, iCo 4.4.3 with MySQL and Cache=true, Permissions 2.5.2
Using /money grant command:
Using /money pay command:
However, with Cache=false:
ok so i scraped as much as i could from the installation guides but for the life of me i cant seem to figure it out, I have set it up, the money is visible etc etc but when i set up MySQL it started malfunctioning. i tried to edit the money through mysql but i havent a clue how to, mine looked nothing like yours in the video, and i feel it would be easier just to have an in game command system to add, remove, trade, etc money If a more detailed or (for dummies) guide could be released i would be greatful
thank you for your time
using reload from the console will cause an error that crashes the database. When the server is shutdown after this happens it shows an error on the console and can cause a roll-back of player inventories.
my iconomy seems to be... well somekinda working. the only command that works is /money help. not even /money works
please reply on this problem, propperly me!
I'm running the latest version of iconomy on build 556.
It is not creating an account automatically when a new user joins, this is quite debilitating.
I can create accounts for players manually, but this wouldnt work for my purposes
Oops, guess I'm supposed to post feature requests here instead. :) Sorry!
Anyway, I was hoping we could get announcements to the player when interest payments occur, configurable on/off with an option of course.
the name iConomy-4.3(.3) is not compatible with ubuntu server systems without having to code a lot.
the error is cosed by the bracket '(' and ')'
Please help every time I start Bukkit iConomy says this and disables.
"Failed to load accounts from database:org.h2.jdbc.JdbcSQLException: Table "ICONOMY" not found ; SQL statement:"
// Lib Directory
(new File("lib" + File.separator)).mkdir();
(new File("lib" + File.separator)).setWritable(true);
(new File("lib" + File.separator)).setExecutable(true);
// Plugin Directory
getDataFolder().mkdir();
getDataFolder().setWritable(true);
getDataFolder().setExecutable(true);
Shouldn't this be in a try/catch inside of iConomy.java?
try
{
// Lib Directory
(new File("lib" + File.separator)).mkdir();
(new File("lib" + File.separator)).setWritable(true);
(new File("lib" + File.separator)).setExecutable(true);
// Plugin Directory
getDataFolder().mkdir();
getDataFolder().setWritable(true);
getDataFolder().setExecutable(true);
}
catch(IOException ex)
{
// Error reporting?
}
Just a feature request:
Have a configuration option to allow the balance on different worlds to be kept separately - also allow world pairing to share the balance for that world (ie they act as one world for iConomy).
This would allow me to have a shared balance with the mainworld and nether but keep a separate balance for the survival world. I'd love to have an economy in the survival world but I dont want it being influenced by the other worlds.
using 4.4.4, from 4.4.3, new users are no longer created in the database
using MySQL and Cache: false
When I use special characters in Messages.yml the server throw an exeption.
I would like to use the characters like äöü because it looks much better.
It would be great when I could use all the characters in Messages.yml that I can use in the nomal chat.
thanks
Keyle
Hello,
The plug-ig works as it should, but after a while I start seeing these errors in the concosle any time some ones uses /money top or /money pay or any money transaction using a shop.
I'm using an external database hosted by my web host, could that be the problem?
I have gotten this to work without any problems on my PC. I am trying to add the plugin to my mac server. When I run the server it says this error and iConomy doesn't start. It doesn't create an iConomy folder inside the plugins either so it's not because I haven't set any settings. It does create a bin folder in the bukkit server main folder. This bin folder is empty however. I have tried placing the dependencies into the bin as well as in the bukkit server main folder but nothing changed.
This is the full message:
12:11:35 [INFO] Starting minecraft server version Beta 1.3
12:11:35 [INFO] Loading properties
12:11:35 [INFO] Starting Minecraft server on *:25565
12:11:35 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-g6c6c30a-b556jnks (MC: 1.3)
12:11:35 [INFO] Preparing level "world"
12:11:35 [INFO] Preparing start region
12:11:36 [INFO] Preparing spawn area: 85%
12:11:37 [INFO] [Permissions] version 2.5.4 was Initialized.
12:11:37 [SEVERE] java.io.File.setWritable(Z)Z loading iConomy v4.5 (Is it up to date?)
java.lang.NoSuchMethodError: java.io.File.setWritable(Z)Z
at com.nijiko.coelho.iConomy.iConomy.onEnable(iConomy.java:75)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
12:11:37 [INFO] [Permissions] version 2.5.4 loaded
12:11:37 [INFO] [PermissionsPlus] plugin version .7b has been enabled.
12:11:37 [INFO] Done (0.131s)! For help, type "help" or "?"
This is quite annoying because all the good plugins for economy require iConomy.
Player A's account = 100
Player B's account = 100
Player A pays player B 50coin
Instead of adding, iconomy divides player B's account by 50.
Player B's account now = 2
This has been happening on my server.
Latest iConomy looses connection to database but other plugins do not.
Is MySQL lazy loading enabled in iConomy? (only connecting when a query is being requested)
Note: BigBrother stays 100% connected and never has an issue writing or retrieving data from the same server.
I have monitored the SQL server using MySQL Workbench 5.2 CE and your plugin remains logged into the database. The database overall is transferring at about 13 to 30kb/s , 5 connections to the database, cpu usage is 0%, mem usage is 13% & database key efficiency is 99.82%
There should be 0 latency issues.
Error examples here: http://forums.bukkit.org/threads/econ-iconomy-4-4-7-arcadia-493-531.40/page-59#post-140778
For group with all the localshops permission except localshop.admin. They are not getting most of the tips when type in /shop help.
Command can still be used but missing the tips on how to use them
such as /shop add , /shop set so on and so forth are missing.
Please fix it. Thanks
downloaded 4.3(.3), seemed to work, so i edited the config to use my MySQL database, and got this:
"""
2011-03-04 22:34:41 [SEVERE] null (Is it up to date?)
java.lang.NullPointerException
at com.nijiko.coelho.iConomy.iConomy.onDisable(iConomy.java:170)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:142)
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:441)
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:199)
at com.nijiko.coelho.iConomy.iConomy.onEnable(iConomy.java:102)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:79)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:60)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
"""
changing it back to SQLite makes it work again.. any idea what could be causing this?
then tried 4.2.. worked fine until i tried to use MySQL
"""
2011-03-04 22:55:03 [INFO] [iConomy] Failed to save accounts and has been disabled.
2011-03-04 22:55:03 [INFO] [iConomy] Failed to connect to database: com.mysql.jdbc.Driver
"""
i'm using the correct login info (i've logged in using the provided auth info several times).. why can it not connect?
(using Craftbukkit version git-Bukkit-0.0.0-458-g557f3d2-b440jnks (MC: 1.3) in ubuntu/debian, running mysql-server)
(using Craftbukkit version git-Bukkit-0.0.0-458-g557f3d2-b440jnks (MC: 1.3) in ubuntu/debian, running mysql-server: 5.1.49-3 (Debian) and 5.1.49-1ubuntu8.1 (Ubuntu) on my test computer)
18:24:54 [SEVERE] null loading iConomy v4.3 (Is it up to date?)
java.lang.NullPointerException
at com.nijiko.coelho.iConomy.iConomy.onDisable(iConomy.java:170)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:120)
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:428)
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:199)
at com.nijiko.coelho.iConomy.iConomy.onEnable(iConomy.java:102)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:414)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
also:
the ( ) in the download link is not compatible with wget. Please use a different format.
I get this following error when trying to start iConomy. I downloaded the MySQL dependency.
16:21:21 [INFO] [iConomy] Failed to connect to database: com.mysql.jdbc.exceptio
ns.jdbc4.MySQLSyntaxErrorException: Unknown database 'minecraft'
Craftbukkit Version: 617
iConomy version: 4.6.5
Current Issue / Error:
18:25:15 [SEVERE] tried to access class com.nijiko.coelho.iConomy.iConomy$Listener from class com.nijiko.coelho.iConomy.iConomy loading iConomy v4.65 (Is it up to date?)
java.lang.IllegalAccessError: tried to access class com.nijiko.coelho.iConomy.iConomy$Listener from class com.nijiko.coelho.iConomy.iConomy
at com.nijiko.coelho.iConomy.iConomy.onEnable(iConomy.java:174)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:514)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
Console Output w/ Full Error See above! ^^
What you were doing? Starting the server.
Were you upgrading? Yes.
Is this a reoccuring issue? Yes, everytime the server starts.
Hello there! I really love this plugin but I, at the moment am encountering a problem with the database. The problem is that when I restart my server, the money data is NOT saved into the database and they start with the regular ammount that you get when you log in for the first time on your character (30 coins, I guess it's modifiable). Any help? ;)
Hello, I'm requesting built in commands to save all the accounts and reload all the accounts.
An example of how this could be useful is as follows:
Telnet into server, run save command (so the database values are all updated), edit the database values from an external source, telnet command to load (update) all the figures.
I want to have something set up on my forums that allow for people who complete certain tasks to be rewarded with iConomy. I'm asking these be a part of the core iConomy plugin.
Hey, I'm trying to run Iconomy on my server... but I get this error :
Logging is currently disabled.
12:37:46 [INFO] [iConomy] Could not create connection: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
12:37:46 [SEVERE] null loading iConomy v4.65 (Is it up to date?)
java.lang.NullPointerException
at com.nijiko.coelho.iConomy.iConomy.update(iConomy.java:313)
at com.nijiko.coelho.iConomy.iConomy.onEnable(iConomy.java:145)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
Database:
# Can be MySQL, or H2SQL
Type: MySQL
# Name of the database
Name: localhost
# Table name
Table: iConomy
# Mysql Details
MySQL:
# MySQL Login Username
Username: 'root'
# MySQL Login Password
Password: '********'
# MySQL Connection Hostname (IP)
Hostname: '88.190.18.209'
# MySQL Connection Port Number
Port: 3306
I have been getting this error constantly even when i update iConomy i've tried checking my configs and issues with other mods but i'm obviously missing something. I'm running Bukkit 493, Essentials, Permissions, LWC, MCMMO, iConomyChestShop and TombStone on my server and they all load fine and so does sqlite.
here is the full error message i get from iConomy...
2011-03-06 08:28:03 [SEVERE] null loading iConomy v4.3 (Is it up to date?)
java.lang.NullPointerException
at com.nijiko.coelho.iConomy.iConomy.onDisable(iConomy.java:170)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:120)
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:428)
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:199)
at com.nijiko.coelho.iConomy.iConomy.onEnable(iConomy.java:92)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:414)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
and this is what it gives me when i just try the /money command in game...
2011-03-06 16:07:16 [SEVERE] java.lang.NullPointerException
2011-03-06 16:07:16 [SEVERE] at com.nijiko.coelho.iConomy.iConomy.onCommand(iConomy.java:221)
2011-03-06 16:07:16 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:31)
2011-03-06 16:07:16 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
2011-03-06 16:07:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:183)
2011-03-06 16:07:16 [SEVERE] at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:619)
2011-03-06 16:07:16 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:582)
2011-03-06 16:07:16 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:576)
2011-03-06 16:07:16 [SEVERE] at net.minecraft.server.Packet3Chat.a(SourceFile:24)
2011-03-06 16:07:16 [SEVERE] at net.minecraft.server.NetworkManager.a(SourceFile:230)
2011-03-06 16:07:16 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
2011-03-06 16:07:16 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
2011-03-06 16:07:16 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
2011-03-06 16:07:16 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
2011-03-06 16:07:16 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
any ideas why this is happening would be greatly appreciated cause i'm at a loss...
Note: after looking for help everywhere in the forums, i'm pretty sure my problem is that i lack a database. in the previous versions iConomy generated a flatfile, but the newer versions are designed around sql and apparently don't generate their own database but need a flatfile to modify. however i'm reinstalling iConomy from scratch so i don't have that flatfile to begin with. if this is for sure my problem i think alot of other people are having it and we could do with either a download on the bukkit forums or have iconomy generate that database for us.
when using /money top with iConomy 4.6.5 and CB617 i get this error
04:54:20 [SEVERE] org.h2.jdbc.JdbcSQLException: Column "HIDDEN" not found; SQL s
tatement:
SELECT * FROM iConomy WHERE hidden = 0 ORDER BY balance DESC LIMIT 5 [42122-153]
04:54:20 [SEVERE] at org.h2.message.DbException.getJdbcSQLException(DbExce
ption.java:327)
04:54:20 [SEVERE] at org.h2.message.DbException.get(DbException.java:167)
04:54:20 [SEVERE] at org.h2.message.DbException.get(DbException.java:144)
04:54:20 [SEVERE] at org.h2.expression.ExpressionColumn.optimize(Expressio
nColumn.java:134)
04:54:20 [SEVERE] at org.h2.expression.Comparison.optimize(Comparison.java
:154)
04:54:20 [SEVERE] at org.h2.command.dml.Select.prepare(Select.java:794)
04:54:20 [SEVERE] at org.h2.command.Parser.prepare(Parser.java:202)
04:54:20 [SEVERE] at org.h2.command.Parser.prepareCommand(Parser.java:214)
04:54:20 [SEVERE] at org.h2.engine.Session.prepareLocal(Session.java:426)
04:54:20 [SEVERE] at org.h2.engine.Session.prepareCommand(Session.java:374
)
04:54:20 [SEVERE] at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnect
ion.java:1100)
04:54:20 [SEVERE] at org.h2.jdbc.JdbcPreparedStatement.(JdbcPrepared
Statement.java:71)
04:54:20 [SEVERE] at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConne
ction.java:243)
04:54:20 [SEVERE] at com.nijiko.coelho.iConomy.system.Bank.getAccountRanks
(Bank.java:230)
04:54:20 [SEVERE] at com.nijiko.coelho.iConomy.entity.Players.showTop(Play
ers.java:393)
04:54:20 [SEVERE] at com.nijiko.coelho.iConomy.entity.Players.onPlayerComm
and(Players.java:474)
04:54:20 [SEVERE] at com.nijiko.coelho.iConomy.iConomy.onCommand(iConomy.j
ava:216)
04:54:20 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginComman
d.java:35)
04:54:20 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
mmandMap.java:80)
04:54:20 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr
aftServer.java:233)
04:54:20 [SEVERE] at net.minecraft.server.NetServerHandler.c(NetServerHand
ler.java:594)
04:54:20 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerH
andler.java:557)
04:54:20 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
ler.java:551)
04:54:20 [SEVERE] at net.minecraft.server.Packet3Chat.a(SourceFile:24)
04:54:20 [SEVERE] at net.minecraft.server.NetworkManager.a(NetworkManager.
java:198)
04:54:20 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
ler.java:72)
04:54:20 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile
:100)
04:54:20 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServe
r.java:368)
04:54:20 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
ver.java:283)
04:54:20 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
ceFile:375)
Hey, I'm trying to run Iconomy on my server... but I get the same error message every time I start up the server. I'm also running the MCMMO plugin, the nether plug in, monster tamer, phoenix permissions, simple barter, and vstopfire. Would any of these conflict with it, possibly?
[INFO] [iConomy] Default setup file written: iConomy.yml
2011-03-31 20:38:07 [INFO] [iConomy] Default setup file written: Messages.yml
2011-03-31 20:38:07 [INFO] [iConomy] Logging is currently disabled.
2011-03-31 20:38:09 [SEVERE] class com.nijiko.coelho.iConomy.entity.Players overrides final method onPlayerJoin.(Lorg/bukkit/event/player/PlayerEvent;)V loading iConomy v4.63 (Is it up to date?)
java.lang.VerifyError: class com.nijiko.coelho.iConomy.entity.Players overrides final method onPlayerJoin.(Lorg/bukkit/event/player/PlayerEvent;)V
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:142)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:32)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.nijiko.coelho.iConomy.iConomy.onEnable(iConomy.java:169)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:511)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:93)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:71)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
If I run it without, my server runs fine:
21:14:52 [INFO] Starting minecraft server version Beta 1.3
21:14:52 [INFO] Loading properties
21:14:52 [INFO] Starting Minecraft server on *:25565
21:14:52 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-605-
g376d7e8-b602jnks (MC: 1.3)
21:14:52 [INFO] Preparing level "Hodsonia"
21:14:52 [INFO] Preparing start region
21:14:53 [INFO] Preparing spawn area: 4%
21:14:54 [INFO] Preparing spawn area: 36%
21:14:55 [INFO] Preparing spawn area: 65%
21:14:57 [INFO] Invalid config file found and converted to proper name/format.
21:14:57 [INFO] Permissions was Initialized.
21:14:57 [INFO] [mcMMO] Permissions enabled.
21:14:57 [INFO] mcMMO version 0.9.14 is enabled!
21:14:57 [INFO] [MonsterTamer]: version 1.23 loaded
21:14:57 [INFO] Nether v1.1 enabled
21:14:57 [INFO] [Permissions] version 2.5.5 loaded
21:14:58 [INFO] Simple Barter version 1.1 is enabled!
21:14:58 [INFO] vStopFire version 1.2 is enabled!
21:14:58 [INFO] Done (0.567s)! For help, type "help" or "?"
at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
hello im runing a dedicated sever and with iconomy installed with imonsters and iconomy chest shop but the coin balance wont change at all please help its just a pain right now
There should be a way to set an account amount that the interest will stop at. For example an account starts with zero credits, then as the interest gives them money, it stops giving them money when they are at or higher then 100 credits.
This could be implemented in two ways, either a master account max money variable in the settings file, or an interest cap variable at which it stops giving interest. Or both, since i can see both the interest and master account max being useful in certain cases.
I'm using craftbukkit 556 and iConomoy v4.6.3
/money rank and /money top do not work for admins or users given access to that command.
When i use /money rank I get an output:
[Money] Current rank: -1
and /money top:
[Money] Top 0 Richest Players:
Also, not sure if this is the right place to ask, but am I required to make a separate database like shown in the tutorial videos? (i.e. making a mysql database at db4free)
for some reason i cant download it says 404 and there is no mirror
When a user type /money help, they should only be presented with the commands that they actually have permission for.
At the very least, don't show Admin commands to non-admins, but it would be best to do the display on a per-permission basis.
/money clean - removes accounts from DB with default value
/money hnb - Gives user hookers and blow at cost of health
Many servers use mods like iChat or Herochat. These have never had problems before with other mods that take commands via the chat.
For some reason, with these mods running only the /money command works, even when permissions are set perfectly.
Due to the sheer number of mods which work along side these plugins (Including the old iConomy 2.x and 3.x) when issuing commands via in-game chat it has to be an issue related to iConomy 4.x I'm afraid. Can this please be looked into?
Please :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.