This is a rather basic plugin that simply listens to the server chat and if a message matches a defined message in the config.yml it will execute the specific messages, and/or commands pertaining to it.
The config is fairly straightforward and can be found below. You can use the [PLAYER] cast for commands to make them execute as the player who entered the message or the [BROADCAST] cast to execute the message as a broadcast to the entire server. You can also enable a sound to be played when the message is detected in chat, and finally you can use the %PLAYER% placeholder which will be replaced with the name of the player who sent the message.
All commands by default will be run by the console unless the [PLAYER] cast is added to the command. All of the messages by default will be sent to the player unless the [BROADCAST] cast is added to the message.
Message: 'Heal me please!'
- heal %PLAYER%
- spawn [PLAYER]
- '&aYou have been healed!'
- '&b%PLAYER% has been healed![BROADCAST]'
Message: 'Who made this plugin?'
- '&bJC_Plays_MC made ChatRecognizer![BROADCAST]'
- '&aClick here for other resources:[BROADCAST]'
After installing the plugin and restarting your server you will need to restart the server yet again to make sure that the newly generated config.yml registers with the plugin.
If you feel like my plugin has helped you in any way and you feel like giving back click the link below.
(Click here to donate)