Better message when can't use a command in museum/because you're frozen

This commit is contained in:
UnknownShadow200 2020-05-25 19:47:56 +10:00
parent b4dcf20054
commit 2115a8eccb

View File

@ -660,10 +660,10 @@ namespace MCGalaxy {
Message("Command is disabled as " + reason); return null;
}
if (level != null && level.IsMuseum && !command.museumUsable) {
Message("Cannot use this command while in a museum."); return null;
Message("Cannot use %T/{0} %Swhile in a museum.", command.name); return null;
}
if (frozen && !command.UseableWhenFrozen) {
Message("Cannot use this command while frozen."); return null;
Message("Cannot use %T/{0} %Swhile frozen.", command.name); return null;
}
return command;
}