Check out example codes for "send message bukkit". It will help you in understanding the concepts better.
Code Example 1
player.sendMessage("Message"); //Send "Message"
player.sendMessage(ChatColor.RED + "Message"); //Sends "Message" in Light red (&c)
Learn ReactJs, React Native from akashmittal.com