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
d3397a2ef7
@ -61,8 +61,9 @@ impl ChatCommand {
|
|||||||
if !server.entity_is_admin(entity) {
|
if !server.entity_is_admin(entity) {
|
||||||
server.clients.notify(
|
server.clients.notify(
|
||||||
entity,
|
entity,
|
||||||
ServerMsg::private(String::from(
|
ServerMsg::private(format!(
|
||||||
"Unavailable command '/{}'.\nType '/help' for available commands",
|
"You don't have permission to use '/{}'.",
|
||||||
|
self.keyword
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user