mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 12:42:22 -04:00
Show actual name of command can't be used in /mb, for multi-commands /mb creations.
This commit is contained in:
parent
800d94c7ed
commit
c3cf0af36d
@ -100,10 +100,10 @@ namespace MCGalaxy.Commands.Building {
|
|||||||
if (p.group.CanExecute(cmd) && (allCmds || !cmd.type.Contains("mod"))) continue;
|
if (p.group.CanExecute(cmd) && (allCmds || !cmd.type.Contains("mod"))) continue;
|
||||||
|
|
||||||
if (IsCommand(message, cmd.name) || IsCommand(alias, cmd.name)) {
|
if (IsCommand(message, cmd.name) || IsCommand(alias, cmd.name)) {
|
||||||
p.SendMessage("You cannot use that command in a messageblock."); return false;
|
Player.Message(p, "You cannot use %T/{0} %Sin a messageblock.", cmd.name); return false;
|
||||||
}
|
}
|
||||||
if (cmd.shortcut != "" && IsCommand(message, cmd.shortcut)) {
|
if (cmd.shortcut != "" && IsCommand(message, cmd.shortcut)) {
|
||||||
p.SendMessage("You cannot use that command in a messageblock."); return false;
|
Player.Message(p, "You cannot use %T/{0} %Sin a messageblock.", cmd.name); return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user