So yeah. I have been talking with some people on the PaperMC discord server and asking for help about a problem I'm having. So, when I start the server, the plugin starts up and even the little log comes up but then it crashes with this log:
I've done a bit of research but the only things I did find were related to the plugin.yml and mine was perfect at least in the coding part. Then I tried compiling with maven directly instead of with intellij and then drag the file into the plugins folder but nothing changed. I used the clean task multiple times then rebuilt and nothing. I really don't know what to try next. Any ideas? Anything is welcome
Code:
[04:53:01 ERROR]: Error occurred while enabling Commonchaterrors v1.0-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "org.bukkit.command.PluginCommand.setExecutor(org.bukkit.command.CommandExecutor)" because the return value of "es.nanasuuakiaa.commonchaterrors.Commonchaterrors.getCommand(String)" is null
at es.nanasuuakiaa.commonchaterrors.Commonchaterrors.onEnable(Commonchaterrors.java:12) ~[commonchaterrors-1.0-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:541) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugin(CraftServer.java:560) ~[paper-1.18.2.jar:git-Paper-387]
at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugins(CraftServer.java:474) ~[paper-1.18.2.jar:git-Paper-387]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:665) ~[paper-1.18.2.jar:git-Paper-387]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:432) ~[paper-1.18.2.jar:git-Paper-387]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:316) ~[paper-1.18.2.jar:git-Paper-387]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1164) ~[paper-1.18.2.jar:git-Paper-387]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[paper-1.18.2.jar:git-Paper-387]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
I've done a bit of research but the only things I did find were related to the plugin.yml and mine was perfect at least in the coding part. Then I tried compiling with maven directly instead of with intellij and then drag the file into the plugins folder but nothing changed. I used the clean task multiple times then rebuilt and nothing. I really don't know what to try next. Any ideas? Anything is welcome