mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-27 19:47:44 +01:00
Send rejection message on incorrect command execution
This commit is contained in:
parent
cdedcd89d6
commit
931806d40a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user