Show actual name of command can't be used in /mb, for multi-commands /mb creations.

This commit is contained in:
UnknownShadow200 2017-05-07 18:54:29 +10:00
parent 800d94c7ed
commit c3cf0af36d

View File

@ -100,10 +100,10 @@ namespace MCGalaxy.Commands.Building {
if (p.group.CanExecute(cmd) && (allCmds || !cmd.type.Contains("mod"))) continue;
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)) {
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;