Skip to content

error when executing a minecraft command when server starts in 26.2 / 26.3 / 26.4 #14457

Closed as duplicate

Description

@mahan90nn

Expected behavior

when you enter a command before server start server when starts execute that command

Observed/Actual behavior

we did /stop and when server started [23:05:51 ERROR]: Command exception: /stop
java.lang.NullPointerException: Cannot invoke "net.minecraft.server.level.ServerLevel.getGameRules()" because the return value of "net.minecraft.commands.CommandSourceStack.getLevel()" is null
at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:463) ~[paper-26.2.jar:26.2-135-e4d6dfd]
at net.minecraft.commands.Commands.performCommand(Commands.java:378) ~[paper-26.2.jar:26.2-135-e4d6dfd]
at net.minecraft.commands.Commands.performCommand(Commands.java:366) ~[paper-26.2.jar:26.2-135-e4d6dfd]
at net.minecraft.commands.Commands.performPrefixedCommand(Commands.java:357) ~[paper-26.2.jar:26.2-135-e4d6dfd]
at net.minecraft.server.dedicated.DedicatedServer.handleConsoleInputs(DedicatedServer.java:574) ~[paper-26.2.jar:26.2-135-e4d6dfd]
at net.minecraft.server.dedicated.DedicatedServer.tickConnection(DedicatedServer.java:530) ~[paper-26.2.jar:26.2-135-e4d6dfd]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1837) ~[paper-26.2.jar:26.2-135-e4d6dfd]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1620) ~[paper-26.2.jar:26.2-135-e4d6dfd]
at net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:404) ~[paper-26.2.jar:26.2-135-e4d6dfd]
at net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1678) ~[paper-26.2.jar:26.2-135-e4d6dfd]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1348) ~[paper-26.2.jar:26.2-135-e4d6dfd]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:303) ~[paper-26.2.jar:26.2-135-e4d6dfd]
at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?] in 26.3 and 4 was the same

Steps/models to reproduce

  1. During loading of the server, execute any command
  2. Wait for the server to finish loading
  3. Meet the exception

Plugin and Datapack List

pl
[23:09:53 INFO]: ℹ Server Plugins (1):
[23:09:53 INFO]: Bukkit Plugins:
[23:09:53 INFO]: - PearlFix
datapack list
[23:09:56 INFO]: There are 2 data pack(s) enabled: [vanilla (built-in)], [paper (built-in)]
[23:09:56 INFO]: There are no more data packs available

Paper version

[23:10:11 INFO]: Checking version, please wait...
[23:10:12 INFO]: This server is running Paper version 26.2-135-ver/26.2@e4d6dfd (2026-10-25T11:18:00Z) (Implementing API version 26.2.build.135-stable)
You are running the latest version

Other

nothing

Activity

  1. added theissue type on Nov 2, 2026
  2. github-actions commented on Nov 2, 2026

    @github-actions

    ⚠️ Minecraft 26.2 is deprecated.

    This version is deprecated by PaperMC. Please consider upgrading to a supported Minecraft version.

  3. masmc05 commented on Nov 2, 2026

    @masmc05
    Contributor

    That's a dublicate of #13580

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

    Type

    Fields

    MC Issue

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions