From a66ce24cfb4a88c713ee2ddaa913c248d2a3b93d Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 5 May 2018 12:45:24 +1000 Subject: [PATCH] Fix incorrect message for /zedit and /perbuild on another map, when can't change min rank due to insufficient permissions --- MCGalaxy/Levels/AccessController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MCGalaxy/Levels/AccessController.cs b/MCGalaxy/Levels/AccessController.cs index 72eff8a25..51688bc92 100644 --- a/MCGalaxy/Levels/AccessController.cs +++ b/MCGalaxy/Levels/AccessController.cs @@ -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;