Skip to content

Internal Error has occured #2338

Open
Open
@stealth25

Description

@stealth25

What is your Quests version / build number (do not say "latest")?

Quests 5.2.1

Describe the problem and how to replicate it.

I attempted to use the command /quests journal and it said an internal error has occured. It worked when I originally installed the plugin but it stopped working for some reason. It allows for me to view the journal but whenever I accept a quest it gives me the error. It only gives me the error when I accept a quest that I created if it works fine with the default quests. It also does not allow me to get rid of the book in anyway

EDIT: I made a quest involving killing mobs and the journal worked, it seems not to work with block type quest.

Still kinda new to this if there is anything else you need please let me know.

quests.txt Here is the quest yml file

Any console errors to share?

11.03 04:28:58 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'quests' in plugin Quests v5.2.2-b533
11.03 04:28:58 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[spigot-api-1.21.4-R0.1-SNAPSHOT.jar:?]
11.03 04:28:58 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:150) ~[spigot-api-1.21.4-R0.1-SNAPSHOT.jar:?]
11.03 04:28:58 [Server] INFO at org.bukkit.craftbukkit.v1_21_R3.CraftServer.dispatchCommand(CraftServer.java:924) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at org.bukkit.craftbukkit.v1_21_R3.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:50) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.3.10.jar:?]
11.03 04:28:58 [Server] INFO at net.minecraft.commands.execution.tasks.ExecuteCommand.a(SourceFile:29) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(SourceFile:13) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.commands.execution.UnboundEntryAction.a(SourceFile:8) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.commands.execution.CommandQueueEntry.a(SourceFile:8) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.commands.execution.ExecutionContext.a(SourceFile:107) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:419) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.commands.CommandDispatcher.performCommand(CommandDispatcher.java:341) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:328) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.server.network.PlayerConnection.b(PlayerConnection.java:1927) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.server.network.PlayerConnection.lambda$handleChatCommand$7(PlayerConnection.java:1903) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.server.TickTask.run(SourceFile:18) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:164) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1319) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:210) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.util.thread.IAsyncTaskHandler.B(SourceFile:138) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.server.MinecraftServer.bv(MinecraftServer.java:1298) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.server.MinecraftServer.B(MinecraftServer.java:1291) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.util.thread.IAsyncTaskHandler.b(SourceFile:147) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1248) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.server.MinecraftServer.x_(MinecraftServer.java:1258) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1101) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329) ~[spigot-1.21.4-R0.1-SNAPSHOT.jar:4433-Spigot-d421948-a02758a]
11.03 04:28:58 [Server] INFO at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
11.03 04:28:58 [Server] INFO Caused by: java.lang.IllegalArgumentException: [LocaleLib] Unable to query Material: STONE
11.03 04:28:58 [Server] INFO at me.pikamug.quests.libs.localelib.LocaleManager.queryMaterial(LocaleManager.java:442) ~[?:?]
11.03 04:28:58 [Server] INFO at me.pikamug.quests.item.BukkitQuestJournal.getPages(BukkitQuestJournal.java:95) ~[?:?]
11.03 04:28:58 [Server] INFO at me.pikamug.quests.item.BukkitQuestJournal.(BukkitQuestJournal.java:51) ~[?:?]
11.03 04:28:58 [Server] INFO at me.pikamug.quests.commands.quests.subcommands.BukkitQuestsJournalCommand.execute(BukkitQuestsJournalCommand.java:81) ~[?:?]
11.03 04:28:58 [Server] INFO at me.pikamug.quests.commands.quests.BukkitQuestsCommandHandler.check(BukkitQuestsCommandHandler.java:70) ~[?:?]
11.03 04:28:58 [Server] INFO at me.pikamug.quests.listeners.BukkitCommandManager.onCommand(BukkitCommandManager.java:51) ~[?:?]
11.03 04:28:58 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot-api-1.21.4-R0.1-SNAPSHOT.jar:?]
11.03 04:28:58 [Server] INFO ... 28 more
11.03 04:28:58 [Server] INFO Caused by: java.lang.ClassCastException: class net.minecraft.sounds.SoundEffect cannot be cast to class java.lang.String (net.minecraft.sounds.SoundEffect is in unnamed module of loader java.net.URLClassLoader @9e89d68; java.lang.String is in module java.base of loader 'bootstrap')
11.03 04:28:58 [Server] INFO at me.pikamug.quests.libs.localelib.LocaleManager.queryMaterial(LocaleManager.java:435) ~[?:?]
11.03 04:28:58 [Server] INFO at me.pikamug.quests.item.BukkitQuestJournal.getPages(BukkitQuestJournal.java:95) ~[?:?]
11.03 04:28:58 [Server] INFO at me.pikamug.quests.item.BukkitQuestJournal.(BukkitQuestJournal.java:51) ~[?:?]
11.03 04:28:58 [Server] INFO at me.pikamug.quests.commands.quests.subcommands.BukkitQuestsJournalCommand.execute(BukkitQuestsJournalCommand.java:81) ~[?:?]
11.03 04:28:58 [Server] INFO at me.pikamug.quests.commands.quests.BukkitQuestsCommandHandler.check(BukkitQuestsCommandHandler.java:70) ~[?:?]
11.03 04:28:58 [Server] INFO at me.pikamug.quests.listeners.BukkitCommandManager.onCommand(BukkitCommandManager.java:51) ~[?:?]
11.03 04:28:58 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot-api-1.21.4-R0.1-SNAPSHOT.jar:?]

If applicable, can you provide an example quest from quests.yml?

  StoneBreaker:
    name: StoneBreaker
    ask-message: Break 5 Stone blocks
    finish-message: Well done!
    stages:
      ordered:
        '1':
          break-block-names:
          - STONE
          break-block-amounts:
          - 5
          break-block-durability:
          - 0
    planner:
      override: false
    options:
      allow-commands: true
      allow-quitting: true
      ignore-silk-touch: true
      use-parties-plugin: true
      share-progress-level: 1
      same-quest-only: true
      share-distance: 0.0
      handle-offline-players: false
      ignore-block-replace: true

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions