mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
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:
parent
db4f1bfba0
commit
a66ce24cfb
@ -163,8 +163,9 @@ namespace MCGalaxy {
|
|||||||
|
|
||||||
bool CheckRank(Player p, LevelPermission perm, string type, bool newPerm) {
|
bool CheckRank(Player p, LevelPermission perm, string type, bool newPerm) {
|
||||||
if (p != null && perm > p.Rank) {
|
if (p != null && perm > p.Rank) {
|
||||||
Player.Message(p, "You cannot change the {0} rank of this level{1} higher than yours.",
|
Player.Message(p, "You cannot change the {0} rank of {1}{2} higher than yours.",
|
||||||
type.ToLower(), newPerm ? " to a rank" : ", as its current " + type.ToLower() + " rank is");
|
type.ToLower(), ColoredName,
|
||||||
|
newPerm ? " %Sto a rank" : ", %Sas its current " + type.ToLower() + " rank is");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user