NBTEditor icon indicating copy to clipboard operation
NBTEditor copied to clipboard

CommandException: Unhandled exception executing 'nbti mod add AttackSpeed 1 16 mainhand'

Open mibby opened this issue 4 years ago • 3 comments

Opening a ticket since the https://github.com/goncalomb/NBTEditor/pull/51 PR was merged before the issue was fixed.

[09:07:19] [Server thread/INFO]: player issued server command: /nbti mod add AttackSpeed 1 16 mainhand
[09:07:19] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing 'nbti mod add AttackSpeed 1 16 mainhand' in com.goncalomb.bukkit.mylib.command.InternalCommand(nbtitem)
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:169) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at org.bukkit.craftbukkit.v1_16_R2.CraftServer.dispatchCommand(CraftServer.java:802) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at net.minecraft.server.v1_16_R2.PlayerConnection.handleCommand(PlayerConnection.java:1921) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at net.minecraft.server.v1_16_R2.PlayerConnection.a(PlayerConnection.java:1732) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at xuan.cat.xuancatapi.code.paper.v1_16_R2.nms.entity.CodeExtendPlayerConnection.packetIn(CodeExtendPlayerConnection.java:753) ~[?:?]
	at xuan.cat.xuancatapi.code.paper.v1_16_R2.nms.entity.CodeExtendPlayerConnection.packetIn(CodeExtendPlayerConnection.java:604) ~[?:?]
	at xuan.cat.xuancatapi.code.paper.v1_16_R2.nms.entity.CodeExtendPlayerConnection.a(CodeExtendPlayerConnection.java:82) ~[?:?]
	at net.minecraft.server.v1_16_R2.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at net.minecraft.server.v1_16_R2.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at net.minecraft.server.v1_16_R2.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:43) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at net.minecraft.server.v1_16_R2.TickTask.run(SourceFile:18) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at net.minecraft.server.v1_16_R2.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at net.minecraft.server.v1_16_R2.MinecraftServer.ba(MinecraftServer.java:1192) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at net.minecraft.server.v1_16_R2.MinecraftServer.executeNext(MinecraftServer.java:1185) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at net.minecraft.server.v1_16_R2.MinecraftServer.sleepForTick(MinecraftServer.java:1161) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:1005) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at net.minecraft.server.v1_16_R2.MinecraftServer.lambda$a$0(MinecraftServer.java:178) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	at java.lang.Thread.run(Thread.java:832) [?:?]
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
	at com.goncalomb.bukkit.mylib.command.MySubCommand.invokeExeMethod(MySubCommand.java:203) ~[?:?]
	at com.goncalomb.bukkit.mylib.command.MySubCommand.execute(MySubCommand.java:122) ~[?:?]
	at com.goncalomb.bukkit.mylib.command.MySubCommand.execute(MySubCommand.java:112) ~[?:?]
	at com.goncalomb.bukkit.mylib.command.MySubCommand.execute(MySubCommand.java:112) ~[?:?]
	at com.goncalomb.bukkit.mylib.command.InternalCommand.execute(InternalCommand.java:43) ~[?:?]
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	... 20 more
Caused by: java.lang.NullPointerException
	at com.goncalomb.bukkit.nbteditor.nbt.attributes.ItemModifier.toNBT(ItemModifier.java:90) ~[?:?]
	at com.goncalomb.bukkit.nbteditor.nbt.attributes.ItemModifier.setItemStackModifiers(ItemModifier.java:64) ~[?:?]
	at com.goncalomb.bukkit.nbteditor.commands.CommandNBTItem.mod_add(CommandNBTItem.java:96) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
	at com.goncalomb.bukkit.mylib.command.MySubCommand.invokeExeMethod(MySubCommand.java:197) ~[?:?]
	at com.goncalomb.bukkit.mylib.command.MySubCommand.execute(MySubCommand.java:122) ~[?:?]
	at com.goncalomb.bukkit.mylib.command.MySubCommand.execute(MySubCommand.java:112) ~[?:?]
	at com.goncalomb.bukkit.mylib.command.MySubCommand.execute(MySubCommand.java:112) ~[?:?]
	at com.goncalomb.bukkit.mylib.command.InternalCommand.execute(InternalCommand.java:43) ~[?:?]
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.16.3.jar:git-Tuinity-"f7b8e25"]
	... 20 more

mibby avatar Nov 02 '20 00:11 mibby