Now only one usage: Make "tell" command can send to console
usage: /tell console <content>
I will make this plugin more useful and fun in the future
(Command is from vanilla not plugin implemented command!)
Implementation method:
(To get bukkit command dispatcher: run "getCommandDispatcher" method in MinecraftServer class after server loaded)
(There is a field name named "g" in nms implemented CommandDispatcher, this field is a mojang implemented CommandDispatcher, register command requires a mojang implemented CommandDispatcher)
(Add a child command to the msg, tell, w command to implement sending message to console)
(ArgumentTypes class is used for get argument that implemented by nms with reflection)
(CHAT is from nms class ArgumentChat)
(e.printStackTrace(System.out) is used to checking error because mojang command api won't print out the exception, I need print it by myself, it was deleted in the released jar)
Because I am using new mojang command api, this plugin cannot be used on 1.12 and before.