Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quest items disappearing on death or quit #484

Closed
SaurPuss opened this issue Dec 18, 2016 · 3 comments
Closed

Quest items disappearing on death or quit #484

SaurPuss opened this issue Dec 18, 2016 · 3 comments
Assignees
Labels
Bug A bug in the code or in a documentation. Confirmed Something is confimed.
Milestone

Comments

@SaurPuss
Copy link

Currently experiencing an issue where items with the Quest Item tag disappear when a player dies or relogs (or the server restarts), making it impossible to finish the quest.

Under normal circumstances the items should be placed in the quest backpack. But that doesn't happen.

The following error logs could be completely unrelated. But I figured I would share them just to be on the safe side:

http://hastebin.com/kovopajepo.css
http://hastebin.com/eneconayec.vbs
http://hastebin.com/juzekewupu.bash
http://hastebin.com/amuxufamot.css

@RiledUpCrow
Copy link
Contributor

RiledUpCrow commented Dec 21, 2016

The first one is an endless loop. It's some mistake in your quest, you shouldn't make endless loops.

The next three are the same problems, they are probably the cause of disappearing.

[Server thread/ERROR]: Could not pass event EntityDeathEvent to BetonQuest v1.8.5
Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_10_R1.entity.CraftPlayer cannot be cast to org.bukkit.entity.Projectile
	at pl.betoncraft.betonquest.MobKillListener.onEntityDeath(MobKillListener.java:66) ~[?:?]

@RiledUpCrow RiledUpCrow added the Bug A bug in the code or in a documentation. label Dec 21, 2016
@RiledUpCrow RiledUpCrow added this to the 1.9 version milestone Dec 21, 2016
@SaurPuss
Copy link
Author

Ah, that makes sense, thanks ^_^

@RiledUpCrow RiledUpCrow added the Confirmed Something is confimed. label Jan 9, 2017
@RiledUpCrow RiledUpCrow self-assigned this Jan 9, 2017
@HollishKid
Copy link

HollishKid commented Jan 10, 2017

I'm not sure this is the right place or this has anything to do, just a wild guess.
Got any insight on this ? (Just occurred with #205 when people move around stuff from their backpack).

[17:00:02] [Server thread/ERROR]: Could not pass event InventoryClickEvent to BetonQuest v1.9-dev#205

org.bukkit.event.EventException

	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.PlayerConnection.a(PlayerConnection.java:1851) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.PacketPlayInWindowClick.a(SourceFile:33) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.PacketPlayInWindowClick.a(SourceFile:10) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_72]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_72]

	at net.minecraft.server.v1_9_R2.SystemUtils.a(SourceFile:45) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.MinecraftServer.D(MinecraftServer.java:726) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.DedicatedServer.D(DedicatedServer.java:399) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.MinecraftServer.C(MinecraftServer.java:665) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:564) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72]

Caused by: java.lang.NullPointerException

	at pl.betoncraft.betonquest.Journal.generateTexts(Journal.java:183) ~[?:?]

	at pl.betoncraft.betonquest.Journal.addToInv(Journal.java:291) ~[?:?]

	at pl.betoncraft.betonquest.Backpack$Page.click(Backpack.java:278) ~[?:?]

	at pl.betoncraft.betonquest.Backpack.onClick(Backpack.java:139) ~[?:?]

	at sun.reflect.GeneratedMethodAccessor628.invoke(Unknown Source) ~[?:?]

	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_72]

	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_72]

	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	... 15 more

[17:00:07] [Server thread/ERROR]: Could not pass event InventoryClickEvent to BetonQuest v1.9-dev#205

org.bukkit.event.EventException

	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.PlayerConnection.a(PlayerConnection.java:1851) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.PacketPlayInWindowClick.a(SourceFile:33) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.PacketPlayInWindowClick.a(SourceFile:10) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_72]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_72]

	at net.minecraft.server.v1_9_R2.SystemUtils.a(SourceFile:45) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.MinecraftServer.D(MinecraftServer.java:726) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.DedicatedServer.D(DedicatedServer.java:399) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.MinecraftServer.C(MinecraftServer.java:665) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:564) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72]

Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1

	at java.lang.String.substring(String.java:1967) ~[?:1.8.0_72]

	at pl.betoncraft.betonquest.item.QuestItem.itemToString(QuestItem.java:579) ~[?:?]

	at pl.betoncraft.betonquest.database.PlayerData.addItem(PlayerData.java:449) ~[?:?]

	at pl.betoncraft.betonquest.Backpack$Page.click(Backpack.java:345) ~[?:?]

	at pl.betoncraft.betonquest.Backpack.onClick(Backpack.java:139) ~[?:?]

	at sun.reflect.GeneratedMethodAccessor628.invoke(Unknown Source) ~[?:?]

	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_72]

	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_72]

	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	... 15 more

[17:00:34] [Server thread/ERROR]: Could not pass event InventoryClickEvent to BetonQuest v1.9-dev#205

org.bukkit.event.EventException

	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.PlayerConnection.a(PlayerConnection.java:1851) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.PacketPlayInWindowClick.a(SourceFile:33) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.PacketPlayInWindowClick.a(SourceFile:10) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_72]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_72]

	at net.minecraft.server.v1_9_R2.SystemUtils.a(SourceFile:45) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.MinecraftServer.D(MinecraftServer.java:726) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.DedicatedServer.D(DedicatedServer.java:399) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.MinecraftServer.C(MinecraftServer.java:665) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:564) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72]

Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1

	at java.lang.String.substring(String.java:1967) ~[?:1.8.0_72]

	at pl.betoncraft.betonquest.item.QuestItem.itemToString(QuestItem.java:579) ~[?:?]

	at pl.betoncraft.betonquest.database.PlayerData.addItem(PlayerData.java:449) ~[?:?]

	at pl.betoncraft.betonquest.Backpack$Page.click(Backpack.java:345) ~[?:?]

	at pl.betoncraft.betonquest.Backpack.onClick(Backpack.java:139) ~[?:?]

	at sun.reflect.GeneratedMethodAccessor628.invoke(Unknown Source) ~[?:?]

	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_72]

	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_72]

	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]

	... 15 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in the code or in a documentation. Confirmed Something is confimed.
Projects
None yet
Development

No branches or pull requests

3 participants