mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-28 12:07:42 +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
|
// 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
|
||||||
|
Loading…
Reference in New Issue
Block a user