Fixed help command output not working

This commit is contained in:
David Berdik 2020-06-27 11:14:20 -04:00
parent 9fa4e7a534
commit d7c1dba8ef

View File

@ -73,7 +73,7 @@ public class CmdExecutor implements CommandExecutor {
if(player.hasPermission("herobrine." + permissionNode.get(v))) {
IChatBaseComponent help = ChatSerializer.a("{\"text\":\"\",\"extra\":[{\"text\":\"" + v +
"\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"" + helpMessageDesc.get(v) + "\"}}]}");
((CraftPlayer) player).getHandle().playerConnection.sendPacket(new PacketPlayOutChat(help, ChatMessageType.CHAT, null));
((CraftPlayer) player).getHandle().playerConnection.sendPacket(new PacketPlayOutChat(help, ChatMessageType.CHAT, player.getUniqueId()));
}
}
}