EpicQuest

EpicQuest

42.2k Downloads

QuestBook complaining about 'Invalid Book Tag'

bigbeno37 opened this issue ยท 8 comments

commented

Starting out with a fresh spigot server, attempting to open the Quest Book will yield this:
capture

I have create 2 quest entities with the default quests 1 and 2 and accepted both quests

commented

Huh... I haven't had this problem. Maybe Google has the awnser?

commented

So I read the book needs an author. Can you verify if your book has an author? It should be set to "The Almighty One".

commented

The book doesn't seem to have an author. However I'll try resetting my player's data so that their inventory will be wiped, thus making EpicQuest regen the Quest Book

commented

If you drop the book and rejoin, you should get it again :)

commented

Okay, I reset the world, EpicQuest data folder and rebuilt EpicQuest AGAIN. I'm still getting an error when I go to select the Quest Book:

[15:01:06] [Server thread/INFO]: Starting minecraft server version 1.8
[15:01:06] [Server thread/INFO]: Loading properties
[15:01:07] [Server thread/INFO]: Default game type: SURVIVAL
[15:01:07] [Server thread/INFO]: Generating keypair
[15:01:07] [Server thread/INFO]: Starting Minecraft server on *:25565
[15:01:09] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-96d09e3 (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
[15:01:10] [Server thread/INFO]: [Vault] Loading Vault v1.5.0-b28
[15:01:10] [Server thread/INFO]: [BarAPI] Loading BarAPI v3.3
[15:01:10] [Server thread/INFO]: [Citizens] Loading Citizens v2.0.14-SNAPSHOT (build 1195)
[15:01:10] [Server thread/INFO]: [Heroes] Loading Heroes v1.5.5.4-SNAPSHOT-b66
[15:01:10] [Server thread/INFO]: [EpicQuest] Loading EpicQuest v3.4.3
[15:01:10] [Server thread/INFO]: [Vault] Enabling Vault v1.5.0-b28
[15:01:10] [Server thread/INFO]: [Vault] [Permission] SuperPermissions loaded as backup permission system.
[15:01:10] [Server thread/INFO]: [Vault] Enabled Version 1.5.0-b28
[15:01:10] [Server thread/INFO]: Preparing level "world"
[15:01:10] [Server thread/INFO]: Preparing start region for level 0 (Seed: 4972223695829082149)
[15:01:11] [Server thread/INFO]: Preparing spawn area: 4%
[15:01:12] [Server thread/INFO]: Preparing spawn area: 6%
[15:01:14] [Server thread/INFO]: Preparing spawn area: 9%
[15:01:15] [Server thread/INFO]: Preparing spawn area: 11%
[15:01:16] [Server thread/INFO]: Preparing spawn area: 14%
[15:01:17] [Server thread/INFO]: Preparing spawn area: 18%
[15:01:18] [Server thread/INFO]: Preparing spawn area: 21%
[15:01:19] [Server thread/INFO]: Preparing spawn area: 22%
[15:01:20] [Server thread/INFO]: Preparing spawn area: 27%
[15:01:21] [Server thread/INFO]: Preparing spawn area: 34%
[15:01:22] [Server thread/INFO]: Preparing spawn area: 39%
[15:01:23] [Server thread/INFO]: Preparing spawn area: 43%
[15:01:24] [Server thread/INFO]: Preparing spawn area: 49%
[15:01:25] [Server thread/INFO]: Preparing spawn area: 56%
[15:01:26] [Server thread/INFO]: Preparing spawn area: 61%
[15:01:27] [Server thread/INFO]: Preparing spawn area: 69%
[15:01:28] [Server thread/INFO]: Preparing spawn area: 73%
[15:01:29] [Server thread/INFO]: Preparing spawn area: 81%
[15:01:30] [Server thread/INFO]: Preparing spawn area: 88%
[15:01:32] [Server thread/INFO]: Preparing spawn area: 95%
[15:01:32] [Server thread/INFO]: Preparing start region for level 1 (Seed: 4972223695829082149)
[15:01:33] [Server thread/INFO]: Preparing spawn area: 11%
[15:01:34] [Server thread/INFO]: Preparing spawn area: 26%
[15:01:35] [Server thread/INFO]: Preparing spawn area: 41%
[15:01:36] [Server thread/INFO]: Preparing spawn area: 50%
[15:01:37] [Server thread/INFO]: Preparing spawn area: 64%
[15:01:38] [Server thread/INFO]: Preparing spawn area: 80%
[15:01:39] [Server thread/INFO]: Preparing spawn area: 87%
[15:01:40] [Server thread/INFO]: Preparing start region for level 2 (Seed: 4972223695829082149)
[15:01:41] [Server thread/INFO]: Preparing spawn area: 25%
[15:01:42] [Server thread/INFO]: Preparing spawn area: 50%
[15:01:43] [Server thread/INFO]: Preparing spawn area: 79%
[15:01:44] [Server thread/INFO]: [BarAPI] Enabling BarAPI v3.3
[15:01:44] [Server thread/INFO]: [BarAPI] Loaded
[15:01:44] [Server thread/INFO]: [Citizens] Enabling Citizens v2.0.14-SNAPSHOT (build 1195)
[15:01:47] [Server thread/ERROR]: [Citizens] Unable to find Rhino classes - javascript scripts won't see non-CraftBukkit classes
[15:01:52] [Server thread/INFO]: [Heroes] Enabling Heroes v1.5.5.4-SNAPSHOT-b66
[15:01:52] [Server thread/INFO]: [Heroes] You are running Heroes on git-Bukkit-96d09e3 (MC: 1.8)
[15:01:52] [Server thread/INFO]: [Heroes] The detected server mod is BUKKIT. Heroes will use BUKKIT compatibility!
[15:01:52] [Server thread/ERROR]: [Heroes] You are attempting to load Heroes on version v1_8_R1 which is not supported!
[15:01:52] [Server thread/INFO]: [Heroes] Disabling Heroes v1.5.5.4-SNAPSHOT-b66
[15:01:52] [Server thread/INFO]: [Heroes]  version 1.5.5.4-SNAPSHOT-b66 is disabled!
[15:01:53] [Server thread/INFO]: [EpicQuest] Enabling EpicQuest v3.4.3
[15:01:54] [Server thread/INFO]: EpicQuest could not find the block file. Creating.
[15:01:54] [Server thread/INFO]: EpicQuest could not find the signs file. Creating.
[15:01:54] [Server thread/INFO]: EpicQuest could not find the quest entities file. Creating.
[15:01:54] [Server thread/INFO]: EpicQuest is done loading 20 quests.
[15:01:54] [Server thread/INFO]: EpicQuest version 3.4.3 enabled.
[15:01:54] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[15:01:56] [Server thread/INFO]: Done (45.824s)! For help, type "help" or "?"
[15:01:57] [Server thread/INFO]: [Citizens] Loaded 0 NPCs.
[15:01:57] [pool-3-thread-3/INFO]: [Vault] Checking for Updates ... 
[15:01:59] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 3138ms behind, skipping 62 tick(s)
[15:02:08] [pool-3-thread-3/INFO]: [Vault] No new version available
[15:02:18] [User Authenticator #1/INFO]: UUID of player bigbeno37 is 81ca4297-9da7-4bdd-ad0a-7947d491e865
[15:02:19] [Server thread/INFO]: bigbeno37[/127.0.0.1:2115] logged in with entity id 2601 at ([world] -24.5, 72.0, 248.5)
[15:02:24] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 4122ms behind, skipping 82 tick(s)
[15:02:46] [Server thread/ERROR]: Could not pass event PlayerItemHeldEvent to EpicQuest v3.4.3
org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:297) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
    at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:853) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
    at net.minecraft.server.v1_8_R1.PacketPlayInHeldItemSlot.a(SourceFile:30) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
    at net.minecraft.server.v1_8_R1.PacketPlayInHeldItemSlot.a(SourceFile:8) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
    at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_25]
    at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_25]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:643) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]
Caused by: java.lang.NullPointerException
    at randy.listeners.OpenBookListener.SetQuestBookPages(OpenBookListener.java:112) ~[?:?]
    at randy.listeners.OpenBookListener.onEditBook(OpenBookListener.java:38) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:295) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
    ... 14 more
[15:02:51] [Server thread/INFO]: bigbeno37 lost connection: Disconnected
[15:02:51] [Server thread/INFO]: bigbeno37 left the game.
[15:02:56] [Server thread/INFO]: Stopping the server
[15:02:56] [Server thread/INFO]: Stopping server
[15:02:56] [Server thread/INFO]: [EpicQuest] Disabling EpicQuest v3.4.3
[15:02:56] [Server thread/INFO]: Saving...
[15:02:56] [Server thread/INFO]: [EpicQuest]: saved 1 player(s).
[15:02:56] [Server thread/INFO]: EpicQuest succesfully disabled.
[15:02:56] [Server thread/INFO]: [Citizens] Disabling Citizens v2.0.14-SNAPSHOT (build 1195)
[15:02:56] [Server thread/INFO]: [BarAPI] Disabling BarAPI v3.3
[15:02:56] [Server thread/INFO]: [Vault] Disabling Vault v1.5.0-b28
[15:02:56] [Server thread/INFO]: Saving players
[15:02:56] [Server thread/INFO]: Saving worlds
[15:02:56] [Server thread/INFO]: Saving chunks for level 'world'/Overworld
[15:02:58] [Server thread/INFO]: Saving chunks for level 'world_nether'/Nether
[15:02:58] [Server thread/INFO]: Saving chunks for level 'world_the_end'/The End
[15:02:58] [Thread-4/INFO]: Stopping server
[15:02:58] [Thread-4/INFO]: Saving players
[15:02:58] [Thread-4/INFO]: Saving worlds
[15:02:58] [Thread-4/INFO]: Saving chunks for level 'world'/Overworld

It's got to do with OpenBookListener lines 112 and 38, which are respectively:
statistics.append(ChatColor.RED + EpicMain.economy.currencyNamePlural() + " earned: " + (int)epicPlayer.getStatMoneyEarned() + "\n");
inHand.setItemMeta(SetQuestBookPages(epicPlayer, book));

I'm thinking it may have something to do with .getStatMoneyEarned(). NullPointerExceptions suck, huh

commented

Shouldn't be a problem... Can you debug this?

commented

Maybe a fix? DarkShimy00@3f77a2c

Didn't test it.

commented

Should be fixed with his: ba0a2dd