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

"Unexpected" error when running /tpll on command blocks #29

Open
tf2mandeokyi opened this issue Dec 27, 2024 · 0 comments
Open

"Unexpected" error when running /tpll on command blocks #29

tf2mandeokyi opened this issue Dec 27, 2024 · 0 comments

Comments

@tf2mandeokyi
Copy link

Peproduction

  • Run tpll @p/@a/@e/... <long> <lat> on a command block

Error Log

java.lang.ClassCastException: class org.bukkit.craftbukkit.command.CraftBlockCommandSender cannot be cast to class org.bukkit.entity.Player (org.bukkit.craftbukkit.command.CraftBlockCommandSender and org.bukkit.entity.Player are in unnamed module of loader java.net.URLClassLoader @40e6dfe1)
        at terraplusminus-1.4.0-korea.jar/de.btegermany.terraplusminus.commands.TpllCommand.execute(TpllCommand.java:32) ~[terraplusminus-1.4.0-korea.jar:?]
        at io.papermc.paper.command.brigadier.PaperCommands.lambda$register$2(PaperCommands.java:193) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.3.10.jar:?]
        at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:31) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:19) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:103) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:443) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.commands.Commands.performCommand(Commands.java:350) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.commands.Commands.performCommand(Commands.java:337) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.commands.Commands.performPrefixedCommand(Commands.java:327) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.commands.Commands.dispatchServerCommand(Commands.java:316) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.world.level.BaseCommandBlock.performCommand(BaseCommandBlock.java:139) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.world.level.block.CommandBlock.execute(CommandBlock.java:132) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.world.level.block.CommandBlock.tick(CommandBlock.java:109) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.tick(BlockBehaviour.java:1222) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.server.level.ServerLevel.tickBlock(ServerLevel.java:1192) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.world.ticks.LevelTicks.runCollectedTicks(LevelTicks.java:192) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.world.ticks.LevelTicks.tick(LevelTicks.java:89) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:673) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1804) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:473) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1596) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1302) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329) ~[paper-1.21.1.jar:1.21.1-132-b48403b]
        at java.base/java.lang.Thread.run(Unknown Source) ~[?:?]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant