cjburkey01 / ClaimChunk

Spigot plugin built for Minecraft 1.17+ allowing the claiming and protection of players' chunks. Old versions available for Minecraft 1.6+ (See Readme!)
https://www.spigotmc.org/resources/claimchunk.44458/
MIT License
74 stars 19 forks source link

error messages in console #301

Closed timmyb4 closed 4 months ago

timmyb4 commented 4 months ago

Versions Spigot Version: 1.21 ClaimChunk Version: 0.0.25-FIX3

Describe the bug Random Error messages in console.

To Reproduce Steps to reproduce the behavior:

  1. Run server. 2.Error are Random placed in the console.

Expected behavior No errors in the console

Additional context

cjburkey01 commented 4 months ago

uh oh, yeeah they changed to using the namespaced names instead of the Material enum names, so I should try to fix that. I wonder why I haven't seen it? Let me try on latest Spigot

cjburkey01 commented 4 months ago

Wait! Is there a enum-compatibility-mode option in your bukkit.yml file? If so, try setting it to true to see if that works? Those entities changed classes recently, oops

(I am able to reproduce, that option fixes the issue, but causes my Essentials to get very upset, so if it doesn't work for you, let me know)

timmyb4 commented 4 months ago

I dont have that option

cjburkey01 commented 4 months ago

I dont have that option

Hmm, it should be up at the top under the compatibility section? It appeared once I updated my test server to 1.21 and restarted it. You're just using Spigot correct, not Paper?

If you haven't customized your bukkit.yml, you could try deleting it and letting it regenerate and see if it appears. I'll need to update my plugin but I don't want to break pre-1.21 yet :p

timmyb4 commented 4 months ago

I use paper.

cjburkey01 commented 4 months ago

Ahh, okay, maybe they didn't add that option, I need to update ClaimChunk soon then

timmyb4 commented 4 months ago

The dit it maybe not because it is not for production servers.

cjburkey01 commented 4 months ago

The dit it maybe not because it is not for production servers.

Ok, so I believe the solution would be to rename all the entities within the world profiles located in the plugins/ClaimChunk/worlds folder

(which isn't easy and may not fix it completely anyway)

cjburkey01 commented 4 months ago

Something that just worked for me is renaming the old world profiles (or the world profile folder) and letting it regenerate. I believe Minecraft/Spigot API changed the names of some of the variants in the code so they wouldn't be recognized if you upgrade from pre-1.21.

So you can also just rename them in your old config files under the _._@E_: section (I'm sorry for that name) or rename/delete them