TARDIS

TARDIS

228k Downloads

Citizen conflict?

FamousL opened this issue ยท 5 comments

commented

Describe the bug

When attempting to load the Tardis plugin with Citizens 2 enabled, there seems to be an issue when creating intrusive holders.

To Reproduce

Create new server
place Citizens2 jenkins build Citizens-2.0.37-b3703.jar in plugins
place TARDIS.jar in plugins
boot the server
Profit!

Screenshots

No response

Log files

[11:45:14 ERROR]: Error occurred while enabling TARDIS v6.0.0-b3035 (Is it up to date?)
java.lang.IllegalStateException: This registry can't create intrusive holders
	at net.minecraft.core.MappedRegistry.createIntrusiveHolder(MappedRegistry.java:339) ~[purpur-1.21.4.jar:1.21.4-2381-5583a3f]
	at Citizens-2.0.37-b3703.jar/net.citizensnpcs.nms.v1_21_R3.util.CustomEntityRegistry.createIntrusiveHolder(CustomEntityRegistry.java:97) ~[Citizens-2.0.37-b3703.jar:?]
	at Citizens-2.0.37-b3703.jar/net.citizensnpcs.nms.v1_21_R3.util.CustomEntityRegistry.createIntrusiveHolder(CustomEntityRegistry.java:38) ~[Citizens-2.0.37-b3703.jar:?]
	at net.minecraft.world.entity.EntityType.<init>(EntityType.java:184) ~[purpur-1.21.4.jar:1.21.4-2381-5583a3f]
	at net.minecraft.world.entity.EntityType$Builder.build(EntityType.java:1709) ~[purpur-1.21.4.jar:1.21.4-2381-5583a3f]
	at TARDIS.jar/me.eccentric_nz.TARDIS.flight.vehicle.TARDISArmourStand.injectEntity(TARDISArmourStand.java:51) ~[TARDIS.jar:?]
	at TARDIS.jar/me.eccentric_nz.TARDIS.flight.vehicle.VehicleLoader.injectEntity(VehicleLoader.java:15) ~[TARDIS.jar:?]
	at TARDIS.jar/me.eccentric_nz.TARDIS.TARDIS.loadHelper(TARDIS.java:1570) ~[TARDIS.jar:?]
	at TARDIS.jar/me.eccentric_nz.TARDIS.TARDIS.onEnable(TARDIS.java:337) ~[TARDIS.jar:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:284) ~[purpur-api-1.21.4-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[purpur-1.21.4.jar:1.21.4-2381-5583a3f]
	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[purpur-1.21.4.jar:1.21.4-2381-5583a3f]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[purpur-api-1.21.4-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:670) ~[purpur-1.21.4.jar:1.21.4-2381-5583a3f]
	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:619) ~[purpur-1.21.4.jar:1.21.4-2381-5583a3f]
	at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:746) ~[purpur-1.21.4.jar:1.21.4-2381-5583a3f]
	at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:491) ~[purpur-1.21.4.jar:1.21.4-2381-5583a3f]
	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:365) ~[purpur-1.21.4.jar:1.21.4-2381-5583a3f]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1178) ~[purpur-1.21.4.jar:1.21.4-2381-5583a3f]
	at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:313) ~[purpur-1.21.4.jar:1.21.4-2381-5583a3f]
	at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

'/tardis version' output

Plugin isn't loading, so this command never becomes available.
Downloaded version:
TARDIS v6.0.0-b3035

commented

Strange, your server loaded citizens later than mine did. Citizens2 loaded before TARDIS for me... I don't think I have anything in place to get them to load in a specific order.

I am a bit perplexed as to how purpur loaded the way it did for you, I was under the impression that it stayed in alphabetical order, yet yours enabled TARDIS before Citizens2....

commented

latest.log

I haven't caught anything we did differently here, aside from luckperms? Maybe something will pop out to you?

Edit:
Noticed that Luck did load before Citizens, so my impression was wrong somewhere.

Edit2:
Another thing leaps out at me, we appear to be using different server types (windows vs linux), I don't know if that matters, but figured I should bring it up.

Edit3:
also noticed i was 3 revisions behind with citizens, yes this still occurs with 3706 on my end

commented

Cannot reproduce

Purpur 1.21.4-2381, Citizens 2.0.37-SNAPSHOT (build 3706), TARDIS 6.0.0-b3035

latest.log

commented

I can add a loadbefore directive to TARDIS's plugin.yml to force TARDIS to load before Citizens

commented

I was able to get it to boot up, many thanks from The Longwing kids ^_^

And a few more from myself and wifey.