Fix incorrect message for /zedit and /perbuild on another map, when can't change min rank due to insufficient permissions

This commit is contained in:
UnknownShadow200 2018-05-05 12:45:24 +10:00
parent db4f1bfba0
commit a66ce24cfb

View File

@ -163,8 +163,9 @@ namespace MCGalaxy {
bool CheckRank(Player p, LevelPermission perm, string type, bool newPerm) {
if (p != null && perm > p.Rank) {
Player.Message(p, "You cannot change the {0} rank of this level{1} higher than yours.",
type.ToLower(), newPerm ? " to a rank" : ", as its current " + type.ToLower() + " rank is");
Player.Message(p, "You cannot change the {0} rank of {1}{2} higher than yours.",
type.ToLower(), ColoredName,
newPerm ? " %Sto a rank" : ", %Sas its current " + type.ToLower() + " rank is");
return false;
}
return true;