Hey so I don't make too many plugins but I know java and I've done a couple of plugins so hopefully I can help. To do what you want, you basically have to make a event handler(my terminology might not be exact) so the plugin listens for what the player is saying and executes something on that event. I'll give you an example of a test program I made when trying to understand this stuff. Basically I wanted to make a plugin that played a donkey noise anytime someone in the chat said the word "jerk" so here's the example:
This is so it'll enable itself which you've probably seen:
public class DonkeySounds extends JavaPlugin{
@Override
public void onEnable(){
new DonkeyListener(this);
}
}
And this is the event handler:
public class DonkeyListener implements Listener{
public DonkeyListener(DonkeySounds donkeySounds)
{
donkeySounds.getServer().getPluginManager().registerEvents(this, donkeySounds);
}
@EventHandler
public void blank(AsyncPlayerChatEvent event)
{
String message = event.getMessage();
for(int x = 0; x < message.length()-3; x++)
{
if(message.charAt(x) == 'j' && message.charAt(x+1) == 'e' && message.charAt(x+2) == 'r' && message.charAt(x+3) == 'k')
{
for(Player players : Bukkit.getOnlinePlayers())
Bukkit.getWorld("world").playSound(players.getLocation(), Sound.DONKEY_IDLE, 10, 1);
}
}
}
}
if(message.charAt(x) == 'j' && message.charAt(x+1) == 'e' && message.charAt(x+2) == 'r' && message.charAt(x+3) == 'k')
^ That line right there makes it happen for me but there's probably a simpler way, but at the time I just made it like that. You could probably do if(message.equals("your message")) because it seems you just want to say something specific. As for the healing part my plugin doesn't do that but if you look through some things you can figure out how to find the sender of the message and heal that player. If you have any more issues or you're not fantastic at java you can message me or something and I can try my best to help out(not saying I can 100% solve the your problem but I can push you in the direction of a better source maybe).