mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'kyozm/proper-lack-of-permission-messages' into 'master'
proper message on permission check failure for commands Closes #303 See merge request veloren/veloren!592
This commit is contained in:
commit
8d272c8234
@ -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