Ajneb97 / EasyCommandBlocker

MIT License
7 stars 4 forks source link

Error #4

Open SladeGit opened 2 years ago

SladeGit commented 2 years ago

latest paperSpigot, newest EasyCommandBlocker,

Error Code on player connect:

Could not pass event PlayerCommandSendEvent to EasyCommandBlocker v1.7.6 java.lang.NullPointerException: Cannot invoke "ecb.ajneb97.core.model.TabCommandList.getCommands()" because "defaultTab" is null at ecb.ajneb97.core.managers.CommandsManager.getTabCommands(CommandsManager.java:83) ~[EasyCommandBlocker.jar:?] at ecb.ajneb97.spigot.listeners.PlayerListenerNew.onCommandSend(PlayerListenerNew.java:28) ~[EasyCommandBlocker.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor78.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:git-Paper-161] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:670) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?] at net.minecraft.commands.Commands.runSync(Commands.java:421) ~[?:?] at net.minecraft.commands.Commands.lambda$sendAsync$6(Commands.java:413) ~[?:?] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.19.2.jar:git-Paper-161] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1361) ~[paper-1.19.2.jar:git-Paper-161] at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:185) ~[paper-1.19.2.jar:git-Paper-161] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1338) ~[paper-1.19.2.jar:git-Paper-161] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1331) ~[paper-1.19.2.jar:git-Paper-161] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1309) ~[paper-1.19.2.jar:git-Paper-161] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1197) ~[paper-1.19.2.jar:git-Paper-161] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-161] at java.lang.Thread.run(Thread.java:833) ~[?:?]

craciu25yt commented 2 years ago

literal te pone defaultTab is null.

Pon eso en el inicio y ya

tab:
  default:
    priority: 0
    commands: []