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

View File

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