Skip to content

chore: Upgrade cloud-paper to support 26.1.x - #18

Merged
Bram1903 merged 1 commit into
Bram1903:mainfrom
NriotHrreion:main
May 4, 2026
Merged

Bram1903 merged 1 commit into
Bram1903:mainfrom
NriotHrreion:main

Conversation

@NriotHrreion

Copy link
Copy Markdown
Contributor

When enabling TotemGuard in 26.1.x, it will throw the error:

[Server thread/ERROR]: Error occurred while enabling TotemGuard v2.1.2 (Is it up to date?)
java.lang.ExceptionInInitializerError
	at org.incendo.cloud.bukkit.parser.ItemStackParser.<init>(ItemStackParser.java:121) ~[?:?]
	at org.incendo.cloud.bukkit.parser.ItemStackParser.itemStackParser(ItemStackParser.java:83) ~[?:?]
	at org.incendo.cloud.bukkit.BukkitParsers.register(BukkitParsers.java:75) ~[?:?]
	at org.incendo.cloud.bukkit.BukkitCommandManager.<init>(BukkitCommandManager.java:99) ~[?:?]
	at org.incendo.cloud.paper.LegacyPaperCommandManager.<init>(LegacyPaperCommandManager.java:92) ~[?:?]
	at org.incendo.cloud.paper.LegacyPaperCommandManager.createNative(LegacyPaperCommandManager.java:119) ~[?:?]
	at TotemGuard-2.1.2.jar//com.deathmotion.totemguard.manager.CloudCommandManager.<init>(CloudCommandManager.java:41) ~[?:?]
	at TotemGuard-2.1.2.jar//com.deathmotion.totemguard.TotemGuard.onEnable(TotemGuard.java:89) ~[?:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:279) ~[paper-api-26.1.2.build.49-beta.jar:?]
	at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:207) ~[paper-26.1.2.jar:26.1.2-49-7799bf2]
	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-26.1.2.jar:26.1.2-49-7799bf2]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-26.1.2.build.49-beta.jar:?]
	at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:637) ~[paper-26.1.2.jar:26.1.2-49-7799bf2]
	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:594) ~[paper-26.1.2.jar:26.1.2-49-7799bf2]
	at net.minecraft.server.MinecraftServer.initPostWorld(MinecraftServer.java:680) ~[paper-26.1.2.jar:26.1.2-49-7799bf2]
	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:386) ~[paper-26.1.2.jar:26.1.2-49-7799bf2]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1301) ~[paper-26.1.2.jar:26.1.2-49-7799bf2]
	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:304) ~[paper-26.1.2.jar:26.1.2-49-7799bf2]
	at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?]
Caused by: java.lang.IllegalArgumentException: Couldn't find createItemStack method on ItemInput
	at org.incendo.cloud.bukkit.internal.CraftBukkitReflection.firstNonNullOrThrow(CraftBukkitReflection.java:125) ~[?:?]
	at org.incendo.cloud.bukkit.parser.ItemStackParser$ModernParser.<clinit>(ItemStackParser.java:158) ~[?:?]
	... 19 more

The latest version of cloud-paper (2.0.0-beta.15) have solved this compatibility issue, see https://github.com/Incendo/cloud-minecraft/releases/tag/2.0.0-beta.15

@Bram1903

Bram1903 commented May 4, 2026

Copy link
Copy Markdown
Owner

Hey man, thank you for trying to solve this issue, but I believe this goes a bit deeper than simply bumping the version of the cloud dependency.

We download dependencies during runtime, using the paper provided method, however the mirror they use for that has broken / does not get updated anymore. Meaning that the last time I tried, the latest version of Cloud wasn't available in the repository, and thus upon launching TotemGuard it will crash given it could not download it's dependency.

Have you tested this change?

Anyhow, obviously this is not the end of TotemGuard. In my Development Discord: https://discord.deathmotion.com/ I made a few announcements about the future of TotemGuard, and what's next.

@NriotHrreion

NriotHrreion commented May 4, 2026 •

Copy link
Copy Markdown
Contributor Author

I have tested this change and my 26.1.2 server is able to enable TotemGuard now. I'm quite sure this can work

@Bram1903

Bram1903 commented May 4, 2026

Copy link
Copy Markdown
Owner

I have tested this change and my 26.1.2 server is able to enable TotemGuard now. I'm quite sure this can work

Perhaps, the mirror has finally updated! In that case I can release a build for 26.1 before I release TotemGuard V3 in the coming weeks.

@Bram1903
Bram1903 self-requested a review May 4, 2026 12:28
@Bram1903 Bram1903 added bug Something isn't working enhancement New feature or request labels May 4, 2026
@Bram1903
Bram1903 merged commit 5998096 into Bram1903:main May 4, 2026
1 check passed
@Bram1903

Bram1903 commented May 4, 2026

Copy link
Copy Markdown
Owner

Thank you for this PR @NriotHrreion!

PS. I have extremely cool things coming up for TotemGuard V3. It's actually mind blowing.

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

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants