Send rejection message on incorrect command execution

This commit is contained in:
Kieran Wallbanks 2021-05-17 14:48:44 +01:00
parent cdedcd89d6
commit 931806d40a
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ public class ChatMessageListener {
// check if we can receive commands
if (Messenger.canReceiveCommand(player)) {
COMMAND_MANAGER.execute(player, command);
} else {
Messenger.sendRejectionMessage(player);
}
// Do not call chat event