function onPlayerChats() { if (player.chat == "heyllo") //if (strequals(#c, heyllo)) this.chat = "Heyllo"; //message hi; else if (player.chat.starts("hi")) //if (startswith(hi, #c)) this.chat = "Oh heyllo there!"; }