Skip to content

fix: support new minecraft version format#4871

Merged
NotMyFault merged 1 commit into
mainfrom
fix/modernMinecraftVersionFormat
May 24, 2026
Merged

fix: support new minecraft version format#4871
NotMyFault merged 1 commit into
mainfrom
fix/modernMinecraftVersionFormat

Conversation

@PierreSchwang
Copy link
Copy Markdown
Member

Overview

Fixes #4863

Description

Basics tests were alright so far

Submitter Checklist

  • Make sure you are opening from a topic branch (/feature/fix/docs/ branch (right side)) and not your main branch.
  • Ensure that the pull request title represents the desired changelog entry.
  • New public fields and methods are annotated with @since TODO.
  • I read and followed the contribution guidelines.

@PierreSchwang PierreSchwang requested a review from a team as a code owner May 24, 2026 08:47
Copy link
Copy Markdown
Collaborator

@NotMyFault NotMyFault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Untested, but looks reasonable.

@NotMyFault NotMyFault added the Bugfix This PR fixes a bug label May 24, 2026
@NotMyFault NotMyFault merged commit 814f364 into main May 24, 2026
8 checks passed
@NotMyFault NotMyFault deleted the fix/modernMinecraftVersionFormat branch May 24, 2026 09:04
@NO-UUID
Copy link
Copy Markdown

NO-UUID commented May 24, 2026

I just built from Github and tried this, fortunately Trim is still an issue...

> p trim world
[12:02:05 ERROR]: [PlotSquared/MainCommand] A error occurred while executing plot command
java.lang.RuntimeException: Could not find worlds folder: ./worlds/world/region ? (no read access?)
        at PlotSquared-Bukkit.jar//com.plotsquared.core.util.WorldUtil.getChunkChunks(WorldUtil.java:360) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.bukkit.util.BukkitUtil.getChunkChunks(BukkitUtil.java:566) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.core.command.Trim.getTrimRegions(Trim.java:97) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.core.command.Trim.onCommand(Trim.java:142) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.core.command.SubCommand.execute(SubCommand.java:50) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.core.command.Command.execute(Command.java:374) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.core.command.MainCommand.lambda$execute$1(MainCommand.java:250) ~[?:?]
        at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1208) ~[?:?]
        at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2368) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.core.command.MainCommand.execute(MainCommand.java:244) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.core.command.MainCommand.onCommand(MainCommand.java:184) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.bukkit.BukkitCommand.onCommand(BukkitCommand.java:54) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[paper-api-26.1.2.build.65-stable.jar:?]
        at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:83) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        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:30) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:13) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:104) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:468) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.commands.Commands.performCommand(Commands.java:376) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.commands.Commands.performCommand(Commands.java:364) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.commands.Commands.performPrefixedCommand(Commands.java:355) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.server.dedicated.DedicatedServer.handleConsoleInputs(DedicatedServer.java:622) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.server.dedicated.DedicatedServer.tickConnection(DedicatedServer.java:578) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1862) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1645) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:444) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1703) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1373) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:304) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?]
[12:02:05 INFO]: [P2] An error occurred: Could not find worlds folder: ./worlds/world/region ? (no read access?)

> ver
[12:05:59 INFO]: Checking version, please wait...
[12:05:59 INFO]: This server is running Paper version 26.1.2-65-main@fd45f4b (2026-05-22T09:47:01Z) (Implementing API version 26.1.2.build.65-stable)
You are running the latest version
Previous version: 1.21.11-132-c5eb079 (MC: 1.21.11)

> ver PlotSquared
[12:06:02 INFO]: PlotSquared version 7.5.14-SNAPSHOT
Easy, yet powerful Plot World generation and management.
Website: https://www.spigotmc.org/resources/77506/
Authors: Citymonstret, Empire92, MattBDev, dordsor21, NotMyFault, and SirYwell

@NO-UUID
Copy link
Copy Markdown

NO-UUID commented May 24, 2026

Actually, maybe not, I tried world as world name but there was no such world on that server since properties had level-name=buildtest set.

@SirYwell
Copy link
Copy Markdown
Member

I just built from Github and tried this, fortunately Trim is still an issue...

> p trim world
[12:02:05 ERROR]: [PlotSquared/MainCommand] A error occurred while executing plot command
java.lang.RuntimeException: Could not find worlds folder: ./worlds/world/region ? (no read access?)
        at PlotSquared-Bukkit.jar//com.plotsquared.core.util.WorldUtil.getChunkChunks(WorldUtil.java:360) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.bukkit.util.BukkitUtil.getChunkChunks(BukkitUtil.java:566) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.core.command.Trim.getTrimRegions(Trim.java:97) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.core.command.Trim.onCommand(Trim.java:142) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.core.command.SubCommand.execute(SubCommand.java:50) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.core.command.Command.execute(Command.java:374) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.core.command.MainCommand.lambda$execute$1(MainCommand.java:250) ~[?:?]
        at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1208) ~[?:?]
        at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2368) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.core.command.MainCommand.execute(MainCommand.java:244) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.core.command.MainCommand.onCommand(MainCommand.java:184) ~[?:?]
        at PlotSquared-Bukkit.jar//com.plotsquared.bukkit.BukkitCommand.onCommand(BukkitCommand.java:54) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[paper-api-26.1.2.build.65-stable.jar:?]
        at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:83) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        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:30) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:13) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:104) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:468) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.commands.Commands.performCommand(Commands.java:376) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.commands.Commands.performCommand(Commands.java:364) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.commands.Commands.performPrefixedCommand(Commands.java:355) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.server.dedicated.DedicatedServer.handleConsoleInputs(DedicatedServer.java:622) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.server.dedicated.DedicatedServer.tickConnection(DedicatedServer.java:578) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1862) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1645) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:444) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1703) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1373) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:304) ~[paper-26.1.2.jar:26.1.2-65-fd45f4b]
        at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?]
[12:02:05 INFO]: [P2] An error occurred: Could not find worlds folder: ./worlds/world/region ? (no read access?)

> ver
[12:05:59 INFO]: Checking version, please wait...
[12:05:59 INFO]: This server is running Paper version 26.1.2-65-main@fd45f4b (2026-05-22T09:47:01Z) (Implementing API version 26.1.2.build.65-stable)
You are running the latest version
Previous version: 1.21.11-132-c5eb079 (MC: 1.21.11)

> ver PlotSquared
[12:06:02 INFO]: PlotSquared version 7.5.14-SNAPSHOT
Easy, yet powerful Plot World generation and management.
Website: https://www.spigotmc.org/resources/77506/
Authors: Citymonstret, Empire92, MattBDev, dordsor21, NotMyFault, and SirYwell

Please open a new issue for the world directory changes.

@NotMyFault
Copy link
Copy Markdown
Collaborator

=> #4872

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

Labels

Bugfix This PR fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Paper 26.1 Migration Issue

4 participants