Closed SuaWez closed 8 years ago
I will be really hard to fix this problem. I have looked at the code and i looks like the plugin is failing when it tries to update the player statistics. My guess is that your database for the given player and period has become currupted somehow.
Because I cant examine your data, I cant find the problem and fix it. You could look into the table (mh_alltime and mh_players) and check whats wrong.
If you cant see whats wrong you either have to send me a copy of your sqlite database or drop the database and restart the server.
Okay, I'm gonna drop the database, it isn't so important because it is new. Will update you soon!
Nothing, same error.
[07:38:46 ERROR]: Factions -> Could not pass event NPCRightClickEvent to MobHunting v2.8.7 [07:38:46 INFO]: Factions -> org.bukkit.event.EventException [07:38:46 INFO]: Factions -> at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at net.citizensnpcs.EventListen.onPlayerInteractEntity(EventListen.java:397) [citizens-2.0.17-SNAPSHOT.jar:?] [07:38:46 INFO]: Factions -> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] [07:38:46 INFO]: Factions -> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_77] [07:38:46 INFO]: Factions -> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77] [07:38:46 INFO]: Factions -> at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77] [07:38:46 INFO]: Factions -> at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at net.minecraft.server.v1_9_R1.PlayerConnection.a(PlayerConnection.java:1532) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at net.minecraft.server.v1_9_R1.PacketPlayInUseEntity.a(SourceFile:68) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at net.minecraft.server.v1_9_R1.PacketPlayInUseEntity.a(SourceFile:12) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.run(SourceFile:13) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_77] [07:38:46 INFO]: Factions -> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_77] [07:38:46 INFO]: Factions -> at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile:45) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:721) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> at java.lang.Thread.run(Thread.java:745) [?:1.8.0_77] [07:38:46 INFO]: Factions -> Caused by: java.lang.NullPointerException [07:38:46 INFO]: Factions -> at one.lindegaard.MobHunting.npc.MasterMobHunterManager.onClick(MasterMobHunterManager.java:199) ~[?:?] [07:38:46 INFO]: Factions -> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] [07:38:46 INFO]: Factions -> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_77] [07:38:46 INFO]: Factions -> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77] [07:38:46 INFO]: Factions -> at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77] [07:38:46 INFO]: Factions -> at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[Spigot.jar:git-Spigot-e6f93f4-935f18b] [07:38:46 INFO]: Factions -> ... 24 more
Maybe its something with Factions. I have never tried to run the plugin while factions is installed, and I see you use Factions.
Tried with just Citizens, Essentials and MH.
Every plugin is in its base version, I didn't touch anything.
Thats what I got:
[14:05:36 WARN]: java.lang.Throwable: Unexpected NavigationListener add [14:05:36 WARN]: at net.minecraft.server.v1_9_R1.NavigationListener.a(Nav igationListener.java:16) [14:05:36 WARN]: at net.citizensnpcs.util.nms.PlayerNavigation.<init>(Pla yerNavigation.java:51) [14:05:36 WARN]: at net.citizensnpcs.npc.entity.EntityHumanNPC.initialise (EntityHumanNPC.java:261) [14:05:36 WARN]: at net.citizensnpcs.npc.entity.EntityHumanNPC.<init>(Ent ityHumanNPC.java:84) [14:05:36 WARN]: at net.citizensnpcs.npc.entity.HumanController.createEnt ity(HumanController.java:82) [14:05:36 WARN]: at net.citizensnpcs.npc.AbstractEntityController.spawn(A bstractEntityController.java:35) [14:05:36 WARN]: at net.citizensnpcs.npc.CitizensNPC.spawn(CitizensNPC.ja va:192) [14:05:36 WARN]: at one.lindegaard.MobHunting.commands.NpcCommand.onComma nd(NpcCommand.java:180) [14:05:36 WARN]: at one.lindegaard.MobHunting.commands.CommandDispatcher. onCommand(CommandDispatcher.java:116) [14:05:36 WARN]: at org.bukkit.command.PluginCommand.execute(PluginComman d.java:44) [14:05:36 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo mmandMap.java:141) [14:05:36 WARN]: at org.bukkit.craftbukkit.v1_9_R1.CraftServer.dispatchCo mmand(CraftServer.java:645) [14:05:36 WARN]: at net.minecraft.server.v1_9_R1.PlayerConnection.handleC ommand(PlayerConnection.java:1350) [14:05:36 WARN]: at net.minecraft.server.v1_9_R1.PlayerConnection.a(Playe rConnection.java:1185) [14:05:36 WARN]: at net.minecraft.server.v1_9_R1.PacketPlayInChat.a(Packe tPlayInChat.java:45) [14:05:36 WARN]: at net.minecraft.server.v1_9_R1.PacketPlayInChat.a(Packe tPlayInChat.java:1) [14:05:36 WARN]: at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1. run(SourceFile:13) [14:05:36 WARN]: at java.util.concurrent.Executors$RunnableAdapter.call(U nknown Source) [14:05:36 WARN]: at java.util.concurrent.FutureTask.run(Unknown Source) [14:05:36 WARN]: at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile :45) [14:05:36 WARN]: at net.minecraft.server.v1_9_R1.MinecraftServer.D(Minecr aftServer.java:721) [14:05:36 WARN]: at net.minecraft.server.v1_9_R1.DedicatedServer.D(Dedica tedServer.java:400) [14:05:36 WARN]: at net.minecraft.server.v1_9_R1.MinecraftServer.C(Minecr aftServer.java:660) [14:05:36 WARN]: at net.minecraft.server.v1_9_R1.MinecraftServer.run(Mine craftServer.java:559) [14:05:36 WARN]: at java.lang.Thread.run(Unknown Source) [14:05:54 ERROR]: Could not pass event NPCRightClickEvent to MobHunting v2.8.7 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:310) ~[spigot.jar:git-Spigot-e6f93f4-ed60c01] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) ~[spigot.jar:git-Spigot-e6f93f4-ed60c01] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:502) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:487) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.citizensnpcs.EventListen.onPlayerInteractEntity(EventListen.java: 385) [Citizens%20(1).jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0 _77] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0 _77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1 .8.0_77] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_77] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:306) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:502) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:487) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.PlayerConnection.a(PlayerConnection.java :1532) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.PacketPlayInUseEntity.a(SourceFile:68) [ spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.PacketPlayInUseEntity.a(SourceFile:12) [ spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.run(SourceFile:1 3) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [ ?:1.8.0_77] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_77] at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile:45) [spigot.jar :git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:7 21) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:4 00) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:6 60) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java :559) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at java.lang.Thread.run(Unknown Source) [?:1.8.0_77] Caused by: java.lang.NullPointerException at one.lindegaard.MobHunting.npc.MasterMobHunterManager.onClick(MasterMo bHunterManager.java:199) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0 _77] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0 _77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1 .8.0_77] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_77] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:306) ~[spigot.jar:git-Spigot-e6f93f4-ed60c01] ... 24 more [14:05:54 ERROR]: Could not pass event NPCRightClickEvent to MobHunting v2.8.7 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:310) ~[spigot.jar:git-Spigot-e6f93f4-ed60c01] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) ~[spigot.jar:git-Spigot-e6f93f4-ed60c01] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:502) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:487) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.citizensnpcs.EventListen.onPlayerInteractEntity(EventListen.java: 385) [Citizens%20(1).jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0 _77] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0 _77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1 .8.0_77] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_77] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:306) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:502) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:487) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.PlayerConnection.a(PlayerConnection.java :1532) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.PacketPlayInUseEntity.a(SourceFile:68) [ spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.PacketPlayInUseEntity.a(SourceFile:12) [ spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.run(SourceFile:1 3) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [ ?:1.8.0_77] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_77] at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile:45) [spigot.jar :git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:7 21) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:4 00) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:6 60) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java :559) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at java.lang.Thread.run(Unknown Source) [?:1.8.0_77] Caused by: java.lang.NullPointerException at one.lindegaard.MobHunting.npc.MasterMobHunterManager.onClick(MasterMo bHunterManager.java:199) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0 _77] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0 _77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1 .8.0_77] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_77] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:306) ~[spigot.jar:git-Spigot-e6f93f4-ed60c01] ... 24 more
So strange... the exactly same error. I have the same plugins on my testserver, and no errors. I cant reproduce the error and then it is extremely hard to fix the bug.
Do you use a stick when you click on the npc? I guess so. And then then sign should update.
What period and stattype is the npc?
Does it happen on all you npcs or only one.? Try creating an extra and check if the same happens with the new one. Choose other rank, stattype and period. Please.
Nothing, still the same... but I found another error string:
[21:30:11 WARN]: Factions -> Exception in thread "MH Data Retriever" [21:30:11 WARN]: Factions -> java.lang.NullPointerException [21:30:11 WARN]: Factions -> at one.lindegaard.MobHunting.storage.MySQLDataStore.loadPlayerStats(MySQLDataStore.java:102) [21:30:11 WARN]: Factions -> at one.lindegaard.MobHunting.storage.asynch.StatRetrieverTask.run(StatRetrieverTask.java:60) [21:30:11 WARN]: Factions -> at one.lindegaard.MobHunting.storage.asynch.StatRetrieverTask.run(StatRetrieverTask.java:1) [21:30:11 WARN]: Factions -> at one.lindegaard.MobHunting.storage.DataStoreManager$TaskThread.run(DataStoreManager.java:235)
Okay I finally found the bug. (YEAH!)
There is a bug with the translation system, because when you translate these lines:
stats.achievement_count=Achievement Count
stats.total=Total
stats.total_kill=Total Kills
stats.total_assist=Total Assist
stats.assist=Assist
stats.assists=Assists
stats.kill=Kill
stats.kills=Kills
stats.both=Both
stats.day=Day
stats.week=Week
stats.month=Month
stats.year=Year
stats.alltime=AllTime
stats.day.friendly=Today
stats.week.friendly=This Week
stats.month.friendly=This Month
stats.year.friendly=This Year
stats.alltime.friendly=All Time
The system seems to bug. In fact I just restored these original lines and It worked without bugs.
Maybe its because the database tables aren't with the same language?
By the way I still don't know why with the unmodified version of it didn't worked well.
I don't know why your translations made the plugin fail. I hope I can fix the problem now.
Do you still have the translation which made it fail? This will help me fixing the problem.
I'm happy that you found the root cause!!!
Thank you! I'm happy too 'cause I love this plugin. I just translated them in Italian:
stats.achievement_count=Obbiettivi
stats.total=Totale
stats.total_kill=Uccisioni Totali
stats.total_assist=Aiuti Totali
stats.assist=Aiuto
stats.assists=Aiuti
stats.kill=Uccisione
stats.kills=Uccisioni
stats.both=Entrambi
stats.day=Giorno
stats.week=Settimana
stats.month=Mese
stats.year=Anno
stats.alltime=Sempre
stats.day.friendly=Oggi
stats.week.friendly=Questa Settimana
stats.month.friendly=Questo Mese
stats.year.friendly=Questo Anno
stats.alltime.friendly=Da Sempre
About the latest released version:
"/mh bounty pice message" doesn't work, he can't find any player, while the permission "mobhunting.bounty" seems to be incorrect because when a normal user tries to do the command it replies with "You don't have the permission [...]" even If I added it.
Maybe its a my error, waiting for a your response!
Update;
After the update the "npc bug" is back.. so its not a translation bug.
Please separate the tickes, so it is easier to know when its fixed. :-)
The bounty command is "/mh bounty pice 100 message" you forgot the number. The player must be online or must have been online on your server not too long ago.
All users which is going to use /hm bounty ..... must have "mobhunting.bounty" I just checked the permission node in my code.
I will help you if you have more problem. This is first release so there could be bugs even though I have tested it on my server.
Is so annoying with that bug. Is it still the same message?
I just noticed this
[21:30:11 WARN]: Factions -> Exception in thread "MH Data Retriever" [21:30:11 WARN]: Factions -> java.lang.NullPointerException [21:30:11 WARN]: Factions -> at one.lindegaard.MobHunting.storage.MySQLDataStore.loadPlayerStats(MySQLDataStore.java:102) [21:30:11 WARN]: Factions -> at one.lindegaard.MobHunting.storage.asynch.StatRetrieverTask.run(StatRetrieverTask.java:60) [21:30:11 WARN]: Factions -> at one.lindegaard.MobHunting.storage.asynch.StatRetrieverTask.run(StatRetrieverTask.java:1) [21:30:11 WARN]: Factions -> at one.lindegaard.MobHunting.storage.DataStoreManager$TaskThread.run(DataStoreManager.java:235)
This is not good we need fix that first, it could be the root cause for your problems. When did it happen?
And Im Using MySQL myself on my PROD server and Sqlite on TEST Server, so both is tested.
I checked the linenumbers with my code (ex : MySQLDataStore.java:102 ) and they dont match. This only happens when you are using old version of MobHunting????? Have you upgraded to V2.9.0 ?
Don't worry about that, I already fixed, it was a mysql problem.
I would ask you a question, its normal that this:
[11:36:15 INFO]: Factions -> [MobHunting] Enabling compatability with Citizens (2.0.17SNAPSHOT(bui ld 1362))
Comes up when everything on the server is done?
Will give you a screenshot for explain better:
Okay. It is ALMOST Normal. Except for the "Faction ->" I don't know why this comes! On my server it looks like:
[12:00:34 INFO]: [MobHunting] Enabling compatability with Citizens (2.0.17-SNAPSHOT (build 1356))
[12:00:34 INFO]: [MobHunting] [Debug] Loading extra MobRewards.
[12:00:34 INFO]: [MobHunting] [Debug] Loaded 8 extra MobRewards.
The reason why it come late is that I postpost the registration some seconds because I had some problems on startUp. (Maybe I shoud try to fix that :-) )
UPDATE: I have changed that in next release 2.9.1 - which will properly be today.
"Factions ->" it's just the server name! ahah
By the way, I think I found the root cause. I tested again in a test server, with just 3 plugins that I used before, which are Essentials, Citizens, Vault. Everything works fine, finally. But even If I put as storage sqlite or mysql I get an error while I try to stop the server. The server freezes and the only way to close it is by the "X". For example with the sqlite thats come up when I stop the server:
Ah, and when I join the server, I get a message that is "ERROR! Your player is missing in the MobHunting Database." Every time, even If I killed a mob and the /mh top marks me with 1 kill.
[12:06:28 INFO]: [MobHunting] Disabling MobHunting v2.9.0
[12:06:28 WARN]: Exception in thread "MH TaskThread"
[12:06:28 WARN]: java.lang.NullPointerException
[12:06:28 WARN]: at one.lindegaard.MobHunting.storage.SQLiteDataStore.sav
ePlayerStats(SQLiteDataStore.java:161)
[12:06:28 WARN]: at one.lindegaard.MobHunting.storage.asynch.StoreTask.ru
n(StoreTask.java:49)
[12:06:28 WARN]: at one.lindegaard.MobHunting.storage.asynch.StoreTask.ru
n(StoreTask.java:1)
[12:06:28 WARN]: at one.lindegaard.MobHunting.storage.DataStoreManager$Ta
skThread.run(DataStoreManager.java:422)
In other words, it doesn't save any data?
Okay, i recommend that you decide if you wavt to use MySQL or SQLite and then stick to this. I get confused if you change to many things at the same time.
The server hangs onDisable when there has been an SQL error previously. So you must have had an SQL error before this one:
[12:06:28 INFO]: [MobHunting] Disabling MobHunting v2.9.0
12:06:28 WARN: Exception in thread "MH TaskThread"
12:06:28 WARN: at one.lindegaard.MobHunting.storage.SQLiteDataStore.sav
ePlayerStats(SQLiteDataStore.java:161)
12:06:28 WARN: at one.lindegaard.MobHunting.storage.asynch.StoreTask.ru
n(StoreTask.java:49)
12:06:28 WARN: at one.lindegaard.MobHunting.storage.asynch.StoreTask.ru
n(StoreTask.java:1)
12:06:28 WARN: at one.lindegaard.MobHunting.storage.DataStoreManager$Ta
skThread.run(DataStoreManager.java:422)
I think you should enable killdebug under general settings while investigation this problem.
Okay sorry. I'm using SQLite for now.
Step by step;
I join the server:
[[12:18:57] [User Authenticator #1/INFO]: UUID of player SuaWez is c364a539-3844-4ed8-a297-7f606df21e76 [12:18:57] [MH TaskThread/INFO]: [MobHunting] [Debug] DataStoreManager: TaskThread.run() failed!!!!!!! [12:18:57] [MH TaskThread/INFO]: [MobHunting] [Debug] DataStoreManager: TaskThread.run() failed!!!!!!! [12:18:57] [Server thread/INFO]: [MobHunting] [Debug] Saving Player Settings for CraftPlayer{name=SuaWez} to database. [12:18:57] [Server thread/INFO]: SuaWez[/127.0.0.1:52932] logged in with entity id 334 at ([world]-177.12543051842192, 79.0, 127.79776553960764) [12:19:00] [Server thread/INFO]: [MobHunting] Enabling compatability with Citizens (2.0.17-SNAPSHOT (build 1362)) [12:19:00] [Server thread/INFO]: [MobHunting] [Debug] Loading MasterMobHunter Traits. [12:19:00] [Server thread/INFO]: [MobHunting] [Debug] Loaded 1 MasterMobHunter Traits's [12:19:00] [Server thread/INFO]: [MobHunting] [Debug] Refreshing 1 MasterMobHunter
I kill 1 Zombie:
[12:20:43] [Server thread/INFO]: [MobHunting] [Debug] Permission 'mobhunting.mobs.*' or 'mobhunting.mobs.ZOMBIE' not set, defaulting to True. [12:20:43] [Server thread/INFO]: [MobHunting] [Debug] Mob Basic Prize=7.58 [12:20:43] [Server thread/INFO]: [MobHunting] [Debug] SuaWez has no Rank Multiplier [12:20:43] [Server thread/INFO]: [MobHunting] [Debug] DifficultyMultiplier: difficulty.multiplier.easy=0.75 [12:20:43] [Server thread/INFO]: [MobHunting] [Debug] SuaWez got a reward ($5.68) [12:20:43] [Server thread/INFO]: [MobHunting] [Debug] DataStoreManager: recordKill [12:20:43] [Server thread/INFO]: [MobHunting] [Debug] send message with TitleManager in ActionBar if supported integration=true, supported=false
I try to stop the server:
[12:21:41] [Server thread/INFO]: [MobHunting] Disabling MobHunting v2.9.0
[12:21:41] [Server thread/INFO]: [MobHunting] [Debug] Flushing waiting data to database...
[12:21:41] [MH TaskThread/INFO]: [MobHunting] [Debug] Saving PlayerStats to Database.
[12:21:41] [MH TaskThread/WARN]: Exception in thread "MH TaskThread"
[12:21:41] [MH TaskThread/WARN]: java.lang.NullPointerException
[12:21:41] [MH TaskThread/WARN]: at one.lindegaard.MobHunting.storage.SQLiteDataStore.savePlayerStats(SQLiteDataStore.java:161)
[12:21:41] [MH TaskThread/WARN]: at one.lindegaard.MobHunting.storage.asynch.StoreTask.run(StoreTask.java:49)
[12:21:41] [MH TaskThread/WARN]: at one.lindegaard.MobHunting.storage.asynch.StoreTask.run(StoreTask.java:1)
[12:21:41] [MH TaskThread/WARN]: at one.lindegaard.MobHunting.storage.DataStoreManager$TaskThread.run(DataStoreManager.java:422)
So this is the problem Saving PlayerSettings does not work.
[12:18:57 INFO]: [MobHunting] [Debug] DataStoreManager: TaskThread.run() failed! !!!!!! [12:18:57 INFO]: [MobHunting] [Debug] DataStoreManager: TaskThread.run() failed! !!!!!! [12:18:57 INFO]: [MobHunting] [Debug] Saving Player Settings for CraftPlayer{nam e=SuaWez} to database. [12:18:57 INFO]: SuaWez[/127.0.0.1:52932] logged in with entity id 334 at ([worl d]-177.12543051842192, 79.0, 127.79776553960764)
Hmm...
Maybe I should try delete my test database, and see what happens.
So i got the same error on an empty database. So I have a problem here.
[12:31:12 INFO]: UUID of player Gabriel333 is 3c9a8292-0fa7-4e7c-8413-2bcb15968204 [12:31:12 INFO]: [MobHunting] [Debug] DataStoreManager: TaskThread.run() failed!!!!!!! [12:31:13 INFO]: [MobHunting] [Debug] DataStoreManager: TaskThread.run() failed!!!!!!! [12:31:13 INFO]: [MobHunting] [Debug] Saving Player Settings for CraftPlayer{name=Gabriel333} to database. [
Yes, thats it.. waiting for an update bro!
Here is an update V2.9.1 I will make a public release when you have tested. I have not had time to test on MySQL so I need to du this before i make a public release.
https://www.dropbox.com/s/9j7e4swpcjy2i7j/MobHunting2.9.1.jar?dl=0
Let me know if this works. Its a quickfix for you only :-)
In v2.9.1 I have added a new feature. I call it "drop money on ground" and can be disabled in config.yml
When you kill a mob it will drop an item and you have to collect them item to get the money. Like in normal RPG games.
Step by step;
I start the server:
`[13:36:54] [Server thread/INFO]: [MobHunting] Enabling MobHunting v2.9.1 [13:36:54] [Server thread/INFO]: [MobHunting] [Debug] Loading WorldGroups [13:36:56] [Server thread/INFO]: [MobHunting] Updating database triggers. [13:36:57] [Server thread/INFO]: [MobHunting] Enabling compatability with Essentials (TeamCity) [13:36:57] [Server thread/INFO]: [MobHunting] [Debug] Loading MasterMobHunter Traits. [13:36:57] [Server thread/INFO]: [MobHunting] [Debug] Loaded 1 MasterMobHunter Traits's [13:36:57] [Server thread/INFO]: [MobHunting] Enabling compatability with Citizens (2.0.17-SNAPSHOT (build 1362)) [13:36:57] [Server thread/INFO]: [MobHunting] [Debug] Loading MasterMobHunter Traits. [13:36:57] [Server thread/INFO]: [MobHunting] [Debug] Loaded 1 MasterMobHunter Traits's [13:36:59] [Server thread/INFO]: [MobHunting] Updating database triggers. [13:36:59] [Server thread/INFO]: [MobHunting] [Debug] Metrics started [13:36:59] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[13:36:59] [Server thread/INFO]: [0;33;22m[MobHunting] Checking for new updates...[m [13:36:59] [Server thread/INFO]: [Citizens] Loaded 0 NPCs. [13:36:59] [Server thread/INFO]: [MobHunting] [Debug] Refreshing 1 MasterMobHunter [13:36:59] [Craft Scheduler Thread - 2/INFO]: [Vault] Checking for Updates ... [13:37:00] [Craft Scheduler Thread - 2/INFO]: [Vault] No new version available [13:37:01] [Server thread/INFO]: [0;33;22m[MobHunting] No update found.[m`
I join the server:
[13:37:11] [User Authenticator #1/INFO]: UUID of player SuaWez is c364a539-3844-4ed8-a297-7f606df21e76 [13:37:11] [MH TaskThread/INFO]: [MobHunting] [Debug] DataStoreManager: TaskThread.run() failed!!!!!!! [13:37:11] [Server thread/INFO]: [MobHunting] [Debug] Saving Player Settings for SuaWez to database. [13:37:11] [MH TaskThread/INFO]: [MobHunting] [Debug] DataStoreManager: TaskThread.run() failed!!!!!!! [13:37:12] [Server thread/WARN]: one.lindegaard.MobHunting.storage.DataStoreException: java.sql.SQLException: No value specified for parameter 5 [13:37:12] [Server thread/WARN]: at one.lindegaard.MobHunting.storage.DatabaseDataStore.insertPlayerSettings(DatabaseDataStore.java:243) [13:37:12] [Server thread/WARN]: at one.lindegaard.MobHunting.storage.DataStoreManager.insertPlayerSettings(DataStoreManager.java:208) [13:37:12] [Server thread/WARN]: at one.lindegaard.MobHunting.storage.DataStoreManager.getPlayerSettings(DataStoreManager.java:186) [13:37:12] [Server thread/WARN]: at one.lindegaard.MobHunting.PlayerSettingsManager.load(PlayerSettingsManager.java:92) [13:37:12] [Server thread/WARN]: at one.lindegaard.MobHunting.PlayerSettingsManager.onPlayerJoin(PlayerSettingsManager.java:65) [13:37:12] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [13:37:12] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [13:37:12] [Server thread/WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [13:37:12] [Server thread/WARN]: at java.lang.reflect.Method.invoke(Unknown Source) [13:37:12] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [13:37:12] [Server thread/WARN]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [13:37:12] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [13:37:12] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [13:37:12] [Server thread/WARN]: at net.minecraft.server.v1_9_R1.PlayerList.onPlayerJoin(PlayerList.java:332) [13:37:12] [Server thread/WARN]: at net.minecraft.server.v1_9_R1.PlayerList.a(PlayerList.java:158) [13:37:12] [Server thread/WARN]: at net.minecraft.server.v1_9_R1.LoginListener.b(LoginListener.java:144) [13:37:12] [Server thread/WARN]: at net.minecraft.server.v1_9_R1.LoginListener.c(LoginListener.java:54) [13:37:12] [Server thread/WARN]: at net.minecraft.server.v1_9_R1.NetworkManager.a(NetworkManager.java:232) [13:37:12] [Server thread/WARN]: at net.minecraft.server.v1_9_R1.ServerConnection.c(ServerConnection.java:141) [13:37:12] [Server thread/WARN]: at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:820) [13:37:12] [Server thread/WARN]: at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [13:37:12] [Server thread/WARN]: at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [13:37:12] [Server thread/WARN]: at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [13:37:12] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source) [13:37:12] [Server thread/WARN]: Caused by: java.sql.SQLException: No value specified for parameter 5 [13:37:12] [Server thread/WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:959) [13:37:12] [Server thread/WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898) [13:37:12] [Server thread/WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887) [13:37:12] [Server thread/WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:862) [13:37:12] [Server thread/WARN]: at com.mysql.jdbc.PreparedStatement.checkAllParametersSet(PreparedStatement.java:2205) [13:37:12] [Server thread/WARN]: at com.mysql.jdbc.PreparedStatement.addBatch(PreparedStatement.java:902) [13:37:12] [Server thread/WARN]: at one.lindegaard.MobHunting.storage.DatabaseDataStore.insertPlayerSettings(DatabaseDataStore.java:236) [13:37:12] [Server thread/WARN]: ... 23 more [13:37:12] [Server thread/INFO]: SuaWez[/127.0.0.1:54639] logged in with entity id 332 at ([world]-177.12543051842192, 79.0, 127.79776553960764)
I stop the server:
`[13:38:53] [Server thread/INFO]: [MobHunting] Disabling MobHunting v2.9.1 [13:38:53] [Server thread/INFO]: [MobHunting] [Debug] Flushing waiting data to database... [13:38:53] [MH TaskThread/INFO]: [MobHunting] [Debug] Saving PlayerStats to Database. [13:38:54] [MH TaskThread/WARN]: Exception in thread "MH TaskThread"
[13:38:54] [MH TaskThread/WARN]: at one.lindegaard.MobHunting.storage.MySQLDataStore.savePlayerStats(MySQLDataStore.java:168) [13:38:54] [MH TaskThread/WARN]: at one.lindegaard.MobHunting.storage.asynch.StoreTask.run(StoreTask.java:49) [13:38:54] [MH TaskThread/WARN]: at one.lindegaard.MobHunting.storage.asynch.StoreTask.run(StoreTask.java:1) [13:38:54] [MH TaskThread/WARN]: at one.lindegaard.MobHunting.storage.DataStoreManager$TaskThread.run(DataStoreManager.java:430)`
An update for you: With SQLite works perfectly. With MySQL still gives the same as I wrote before
You told me you would stick to Sqlite. I had not had time to test this on MySql. I knew that i had to do this before making a public release
Ah ok, so I did a mistake. It's okay, everything works fine.
Sorry and thanks for the assistance!
Thank you for your help I will look MySql now :-)
I prefer mysql myself ...
Yeah I will use MySQL when you release the update, SQLite was just for my local test server
This is a fix for MySQL i cant test now because I have players on my PROD, but I think I found the error in MySQL command.
https://www.dropbox.com/s/k3woyjzeffu0ud7/MobHunting2.9.1.jar?dl=0
I could restart now, so I can test it now.
The fix works for existing players. If you want to help you could eventually login to my PROD server mc.lindegaard.one and then I can check if there is errors in the log. When you login/logout.
What do you think about the new feature https://www.spigotmc.org/threads/mobhunting.46937/page-33#post-1549654
Do you think it should enabled by default ?
Its a nice option, for example I need it in my server, so I enable it. But I think it should be disabled by default, because it can be enabled if someone need it ;)
By the way I tested the new fix and it gives me an error when he tries to load something:
[14:08:30] [User Authenticator #1/INFO]: UUID of player SuaWez is c364a539-3844-4ed8-a297-7f606df21e76
[14:08:30] [MH TaskThread/WARN]: Exception in thread "MH TaskThread"
[14:08:30] [MH TaskThread/WARN]: java.lang.NullPointerException
[14:08:30] [MH TaskThread/WARN]: at com.mysql.jdbc.ResultSetImpl.next(ResultSetImpl.java:6341)
[14:08:30] [MH TaskThread/WARN]: at one.lindegaard.MobHunting.storage.DatabaseDataStore.getPlayerId(DatabaseDataStore.java:354)
[14:08:30] [MH TaskThread/WARN]: at one.lindegaard.MobHunting.storage.DatabaseDataStore.loadAchievements(DatabaseDataStore.java:459)
[14:08:30] [MH TaskThread/WARN]: at one.lindegaard.MobHunting.storage.asynch.AchievementRetrieverTask.run(AchievementRetrieverTask.java:82)
[14:08:30] [MH TaskThread/WARN]: at one.lindegaard.MobHunting.storage.asynch.AchievementRetrieverTask.run(AchievementRetrieverTask.java:1)
[14:08:30] [MH TaskThread/WARN]: at one.lindegaard.MobHunting.storage.DataStoreManager$TaskThread.run(DataStoreManager.java:430)
Tell me if I have to join your server!
You can find here a more accurate log: http://pastebin.com/WccKVkL4
I think this fixed it. https://www.dropbox.com/s/ap2ag1v5bfpqy8t/MobHunting2.9.1.jar?dl=0
Its very seldom I have the chance to test on a empty database and I cant test all scenarios before each release. Im sorry for al this testing.
Don't worry I think you re at the end of it. Everything WORKS during the first start.
But when I stop, and start again, this error appear:
[14:48:08 ERROR]: Could not pass event PlayerJoinEvent to MobHunting v2.9.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:310) ~[spigot.jar:git-Spigot-e6f93f4-ed60c01] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) ~[spigot.jar:git-Spigot-e6f93f4-ed60c01] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:502) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:487) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.PlayerList.onPlayerJoin(PlayerList.java: 332) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.PlayerList.a(PlayerList.java:158) [spigo t.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.LoginListener.b(LoginListener.java:144) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.LoginListener.c(LoginListener.java:54) [ spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.NetworkManager.a(NetworkManager.java:232 ) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.ServerConnection.c(ServerConnection.java :141) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:8 20) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:4 00) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:6 60) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java :559) [spigot.jar:git-Spigot-e6f93f4-ed60c01] at java.lang.Thread.run(Unknown Source) [?:1.8.0_77] Caused by: java.lang.NullPointerException at com.mysql.jdbc.ResultSetImpl.next(ResultSetImpl.java:6341) ~[spigot.j ar:git-Spigot-e6f93f4-ed60c01] at one.lindegaard.MobHunting.storage.DatabaseDataStore.getPlayerSettings (DatabaseDataStore.java:214) ~[?:?] at one.lindegaard.MobHunting.storage.DataStoreManager.getPlayerSettings( DataStoreManager.java:183) ~[?:?] at one.lindegaard.MobHunting.PlayerSettingsManager.load(PlayerSettingsMa nager.java:89) ~[?:?] at one.lindegaard.MobHunting.PlayerSettingsManager.onPlayerJoin(PlayerSe ttingsManager.java:65) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0 _77] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0 _77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1 .8.0_77] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_77] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:306) ~[spigot.jar:git-Spigot-e6f93f4-ed60c01] ... 14 more [14:48:08 INFO]: SuaWez[/127.0.0.1:56108] logged in with entity id 332 at ([worl d]-178.56690633052293, 79.0, 126.59351033451985)
That at the end:
[14:50:56 INFO]: [MobHunting] Disabling MobHunting v2.9.1 [14:50:56 INFO]: [MobHunting] [Debug] Flushing waiting data to database... [14:50:56 INFO]: [MobHunting] MH TaskThread was interrupted [14:50:58 INFO]: [MobHunting] [Debug] Closing database connection. [14:50:58 INFO]: [MobHunting] [Debug] Saving worldGroups
Try this one. I really hope we are close to the end. :-) I test always before I ask you to test, but again I can't test all scenarios. :-( I had not tried to start, login, logout, stop, start in a fast pace. This gave an error.
https://www.dropbox.com/s/jhzuwzr7eh3ssqw/MobHunting2.9.1.jar?dl=0
First start with a new database:
[15:05:45 INFO]: [MobHunting] Enabling MobHunting v2.9.1
[15:05:45 INFO]: [MobHunting] [Debug] Loading WorldGroups
[15:05:47 INFO]: [MobHunting] Updating database triggers.
[15:05:49 INFO]: [MobHunting] Enabling compatability with Essentials (TeamCity)
[15:05:49 INFO]: [MobHunting] [Debug] Loading MasterMobHunter Traits.
[15:05:49 INFO]: [MobHunting] [Debug] Loaded 1 MasterMobHunter Traits's
[15:05:49 INFO]: [MobHunting] Enabling compatability with Citizens (2.0.17-SNAPS
HOT (build 1362))
[15:05:49 INFO]: [MobHunting] [Debug] Loading MasterMobHunter Traits.
[15:05:49 INFO]: [MobHunting] [Debug] Loaded 1 MasterMobHunter Traits's
[15:05:50 INFO]: [MobHunting] Updating database triggers.
[15:05:51 INFO]: [MobHunting] [Debug] Metrics started
[15:05:51 INFO]: Server permissions file permissions.yml is empty, ignoring it
[15:05:51 INFO]: Done (9,954s)! For help, type "help" or "?"
[15:05:51 INFO]: [MobHunting] Checking for new updates...
[15:05:51 INFO]: [Citizens] Loaded 1 NPCs.
[15:05:51 INFO]: [MobHunting] [Debug] Refreshing 1 MasterMobHunter
[15:05:51 INFO]: [Vault] Checking for Updates ...
[15:05:52 INFO]: [Vault] No new version available
[15:05:53 INFO]: [MobHunting] No update found.
[15:06:12 INFO]: UUID of player SuaWez is c364a539-3844-4ed8-a297-7f606df21e76
[15:06:12 INFO]: [MobHunting] [Debug] DataStoreManager: TaskThread.run() failed!
!!!!!!
[15:06:12 INFO]: [MobHunting] [Debug] Saving Player Settings for SuaWez to datab
ase.
[15:06:13 INFO]: SuaWez[/127.0.0.1:56316] logged in with entity id 337 at ([worl
d]-177.0654845161395, 79.0, 126.32125873446462)
[15:06:13 WARN]: one.lindegaard.MobHunting.storage.DataStoreException: java.sql.
SQLException: No value specified for parameter 1
[15:06:13 WARN]: at one.lindegaard.MobHunting.storage.DatabaseDataStore.l
oadAchievements(DatabaseDataStore.java:471)
[15:06:13 WARN]: at one.lindegaard.MobHunting.storage.asynch.AchievementR
etrieverTask.run(AchievementRetrieverTask.java:82)
[15:06:13 WARN]: at one.lindegaard.MobHunting.storage.asynch.AchievementR
etrieverTask.run(AchievementRetrieverTask.java:1)
[15:06:13 WARN]: at one.lindegaard.MobHunting.storage.DataStoreManager$Ta
skThread.run(DataStoreManager.java:430)
[15:06:13 WARN]: Caused by: java.sql.SQLException: No value specified for parame
ter 1
[15:06:13 WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.j
ava:959)
[15:06:13 WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.j
ava:898)
[15:06:13 WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.j
ava:887)
[15:06:13 WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.j
ava:862)
[15:06:13 WARN]: at com.mysql.jdbc.PreparedStatement.checkAllParametersSe
t(PreparedStatement.java:2205)
[15:06:13 WARN]: at com.mysql.jdbc.PreparedStatement.fillSendPacket(Prepa
redStatement.java:2185)
[15:06:13 WARN]: at com.mysql.jdbc.PreparedStatement.fillSendPacket(Prepa
redStatement.java:2115)
[15:06:13 WARN]: at com.mysql.jdbc.PreparedStatement.executeQuery(Prepare
dStatement.java:1936)
[15:06:13 WARN]: at one.lindegaard.MobHunting.storage.DatabaseDataStore.g
etPlayerId(DatabaseDataStore.java:350)
[15:06:13 WARN]: at one.lindegaard.MobHunting.storage.DatabaseDataStore.l
oadAchievements(DatabaseDataStore.java:460)
[15:06:13 WARN]: ... 3 more```
Dude I'm gonna go out for some hours, will test everything you give in a few hours.
No problem. Thank you for your help.
Please test this one when you are at home again.
https://www.dropbox.com/s/tp9664hli8sn7zz/MobHunting2.9.1.jar?dl=0
Everything fine except when the server stops
[16:54:39 INFO]: [MobHunting] Disabling MobHunting v2.9.1
[16:54:39 INFO]: [MobHunting] [Debug] Flushing waiting data to database...
[16:54:39 INFO]: [MobHunting] [Debug] Saving PlayerStats to Database.
[16:54:39 WARN]: Exception in thread "MH TaskThread"
[16:54:39 WARN]: java.lang.NullPointerException
[16:54:39 WARN]: at one.lindegaard.MobHunting.storage.MySQLDataStore.save
PlayerStats(MySQLDataStore.java:167)
[16:54:39 WARN]: at one.lindegaard.MobHunting.storage.asynch.StoreTask.ru
n(StoreTask.java:49)
[16:54:39 WARN]: at one.lindegaard.MobHunting.storage.asynch.StoreTask.ru
n(StoreTask.java:1)
[16:54:39 WARN]: at one.lindegaard.MobHunting.storage.DataStoreManager$Ta
skThread.run(DataStoreManager.java:430)
If this can help, when I try to delete the table "mh_players":
You are not allowed to delete mh_Players, because the player id is used in mh_alltime, mh_months.... so it is easier to drop the database if you want to start over.
I have made a new try now :
https://www.dropbox.com/s/d5bodhrkkk0gxl7/MobHunting2.9.1.jar?dl=0
When I create an NPC everything goes fine, but when I click on it the console give an error. After that the Signs doesn't works with the NPC id (that I picked with /npc list), it come up like it is a normal sign.
P.S: I'm running the latest version, on spigot 1.9.2, with the latest version of Citizens2
Thats the error:
[19:39:28 ERROR]: Factions -> Could not pass event NPCRightClickEvent to MobHunting v2.8.7 [19:39:28 INFO]: Factions -> org.bukkit.event.EventException [19:39:28 INFO]: Factions -> at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at net.citizensnpcs.EventListen.onPlayerInteractEntity(EventListen.java:397) [citizens-2.0.17-SNAPSHOT.jar:?] [19:39:28 INFO]: Factions -> at sun.reflect.GeneratedMethodAccessor347.invoke(Unknown Source) ~[?:?] [19:39:28 INFO]: Factions -> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77] [19:39:28 INFO]: Factions -> at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77] [19:39:28 INFO]: Factions -> at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at net.minecraft.server.v1_9_R1.PlayerConnection.a(PlayerConnection.java:1532) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at net.minecraft.server.v1_9_R1.PacketPlayInUseEntity.a(SourceFile:68) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at net.minecraft.server.v1_9_R1.PacketPlayInUseEntity.a(SourceFile:12) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.run(SourceFile:13) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_77] [19:39:28 INFO]: Factions -> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_77] [19:39:28 INFO]: Factions -> at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile:45) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:721) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> at java.lang.Thread.run(Thread.java:745) [?:1.8.0_77] [19:39:28 INFO]: Factions -> Caused by: java.lang.NullPointerException [19:39:28 INFO]: Factions -> at one.lindegaard.MobHunting.npc.MasterMobHunterManager.onClick(MasterMobHunterManager.java:199) ~[?:?] [19:39:28 INFO]: Factions -> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] [19:39:28 INFO]: Factions -> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_77] [19:39:28 INFO]: Factions -> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77] [19:39:28 INFO]: Factions -> at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77] [19:39:28 INFO]: Factions -> at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[Spigot.jar:git-Spigot-e6f93f4-935f18b] [19:39:28 INFO]: Factions -> ... 23 more