Issue with Citizens and Model Engine on 1.20.4
Upon adding a model to an npc. Restarting the server and trying to tab complete the model ends with a stacktrace.
[19:37:14 ERROR]: Exception when ICEconchy attempted to tab complete meg npc model citizens:1:[timewarp] remove
org.bukkit.command.CommandException: Unhandled exception during tab completion for command '/meg npc model citizens:1:[timewarp] remove ' in plugin ModelEngine vR4.0.8
at org.bukkit.command.PluginCommand.tabComplete(PluginCommand.java:150) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.command.Command.tabComplete(Command.java:93) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.command.SimpleCommandMap.tabComplete(SimpleCommandMap.java:240) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_20_R3.CraftServer.tabCompleteCommand(CraftServer.java:2548) ~[paper-1.20.4.jar:git-Paper-"f4c7d37"]
at org.bukkit.craftbukkit.v1_20_R3.CraftServer.tabComplete(CraftServer.java:2520) ~[paper-1.20.4.jar:git-Paper-"f4c7d37"]
at org.bukkit.craftbukkit.v1_20_R3.command.BukkitCommandWrapper.getSuggestions(BukkitCommandWrapper.java:74) ~[paper-1.20.4.jar:git-Paper-"f4c7d37"]
at com.mojang.brigadier.tree.ArgumentCommandNode.listSuggestions(ArgumentCommandNode.java:71) ~[brigadier-1.2.9.jar:git-Paper-"f4c7d37"]
at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:551) ~[paper-1.20.4.jar:?]
at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:531) ~[paper-1.20.4.jar:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.sendServerSuggestions(ServerGamePacketListenerImpl.java:842) ~[?:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleCustomCommandSuggestions0$2(ServerGamePacketListenerImpl.java:808) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.20.4.jar:git-Paper-"f4c7d37"]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:149) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1465) ~[paper-1.20.4.jar:git-Paper-"f4c7d37"]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:194) ~[paper-1.20.4.jar:git-Paper-"f4c7d37"]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:123) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1442) ~[paper-1.20.4.jar:git-Paper-"f4c7d37"]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1365) ~[paper-1.20.4.jar:git-Paper-"f4c7d37"]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:133) ~[?:?]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1343) ~[paper-1.20.4.jar:git-Paper-"f4c7d37"]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1232) ~[paper-1.20.4.jar:git-Paper-"f4c7d37"]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[paper-1.20.4.jar:git-Paper-"f4c7d37"]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "com.ticxo.modelengine.api.model.ModeledEntity.getModels()" because "modeledEntity" is null
at com.ticxo.modelengine.core.command.MECommand.getModelIdTabComplete(MECommand.java:37) ~[ModelEngine-4.0.8.jar:?]
at com.ticxo.modelengine.core.citizens.CitizensCommand$ModelCommand.onTabComplete(CitizensCommand.java:166) ~[ModelEngine-4.0.8.jar:?]
at com.ticxo.modelengine.api.command.AbstractCommand.onTabComplete(AbstractCommand.java:89) ~[ModelEngine-4.0.8.jar:?]
at com.ticxo.modelengine.api.command.AbstractCommand.onTabComplete(AbstractCommand.java:81) ~[ModelEngine-4.0.8.jar:?]
at com.ticxo.modelengine.api.command.AbstractCommand.onTabComplete(AbstractCommand.java:81) ~[ModelEngine-4.0.8.jar:?]
at org.bukkit.command.PluginCommand.tabComplete(PluginCommand.java:141) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
... 23 more
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information