mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 12:42:22 -04:00
CheckExtraPerms should use extra perms instance description, not ExtraPerms array (in case user defined custom extra perms)
This commit is contained in:
parent
05e6e14c49
commit
6ebf2d7ad4
@ -59,9 +59,8 @@ namespace MCGalaxy {
|
||||
protected bool CheckExtraPerm(Player p, int num) {
|
||||
if (HasExtraPerm(p, num)) return true;
|
||||
|
||||
LevelPermission perm = CommandExtraPerms.MinPerm(name, num);
|
||||
string action = ExtraPerms[num - 1].Description;
|
||||
Formatter.MessageNeedMinPerm(p, action, perm);
|
||||
CommandExtraPerms perms = CommandExtraPerms.Find(name, num);
|
||||
Formatter.MessageNeedMinPerm(p, perms.Description, perms.MinRank);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,8 @@ namespace MCGalaxy.Network {
|
||||
Server.zombie.OnHeartbeat(ref name);
|
||||
name = Colors.Strip(name);
|
||||
|
||||
return "&port=" + ServerConfig.Port +
|
||||
return
|
||||
"&port=" + ServerConfig.Port +
|
||||
"&max=" + ServerConfig.MaxPlayers +
|
||||
"&name=" + Uri.EscapeDataString(name) +
|
||||
"&public=" + ServerConfig.Public +
|
||||
|
Loading…
x
Reference in New Issue
Block a user