mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
proper message on permission check failure for commands
This commit is contained in:
parent
36265e5710
commit
5be28178bd
@ -61,8 +61,9 @@ impl ChatCommand {
|
||||
if !server.entity_is_admin(entity) {
|
||||
server.clients.notify(
|
||||
entity,
|
||||
ServerMsg::private(String::from(
|
||||
"Unavailable command '/{}'.\nType '/help' for available commands",
|
||||
ServerMsg::private(format!(
|
||||
"You don't have permission to use '/{}'.",
|
||||
self.keyword
|
||||
)),
|
||||
);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user