mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-10-03 10:33:29 -04:00
Better message when can't use a command in museum/because you're frozen
This commit is contained in:
parent
b4dcf20054
commit
2115a8eccb
@ -660,10 +660,10 @@ namespace MCGalaxy {
|
|||||||
Message("Command is disabled as " + reason); return null;
|
Message("Command is disabled as " + reason); return null;
|
||||||
}
|
}
|
||||||
if (level != null && level.IsMuseum && !command.museumUsable) {
|
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) {
|
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;
|
return command;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user