when trying to run the command on any pokemon (both in team and not) the command will return to the player "An unknown error occurred while attempting to perform this command".
In the console there is a NullPointerException visible in the console directly following the command.
Code: Select all[21:27:20] [Server thread/INFO] [net.minecraft.network.NetHandlerPlayServer]: SodoPlex issued server command: /tms Magikarp
[21:27:20] [Server thread/WARN] [net.minecraft.command.CommandHandler]: Couldn't process command: tms Magikarp
java.lang.NullPointerException: null
at com.pixelextras.commands.TM.func_184881_a(TM.java:61) ~[TM.class:?]
at net.minecraft.command.CommandHandler.func_175786_a(CommandHandler.java:124) ~[bj.class:?]
at net.minecraft.command.CommandHandler.func_71556_a(CommandHandler.java:96) ~[bj.class:?]
at org.bukkit.craftbukkit.v1_12_R1.command.CraftSimpleCommandMap.dispatch(CraftSimpleCommandMap.java:47) ~[CraftSimpleCommandMap.class:dce6a22-DEV]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchVanillaCommand(CraftServer.java:702) ~[CraftServer.class:dce6a22-DEV]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:697) ~[CraftServer.class:dce6a22-DEV]
at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:1604) ~[pa.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:1452) ~[pa.class:?]
at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(CPacketChatMessage.java:50) ~[la.class:?]
at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(CPacketChatMessage.java:11) ~[la.class:?]
at net.minecraft.network.PacketThreadUtil.lambda$checkThreadAndEnqueue$0(PacketThreadUtil.java:14) ~[hv.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_292]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_292]
at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:926) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:461) [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:865) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:737) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]
On the plus side, this does not crash the server :)