mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Fix your own tab list entry not being updated after unhiding. (Thanks KawaiiCube)
This commit is contained in:
parent
1679c25a1f
commit
2480349443
@ -282,13 +282,6 @@ namespace MCGalaxy.Commands {
|
||||
}
|
||||
}
|
||||
|
||||
static void EnsureFileExists(string path) {
|
||||
if (!Directory.Exists("levels/blacklists/"))
|
||||
Directory.CreateDirectory("levels/blacklists/");
|
||||
if (!File.Exists(path))
|
||||
File.Create(path).Dispose();
|
||||
}
|
||||
|
||||
static string NextLevel(Player p) {
|
||||
string level = p.name.ToLower();
|
||||
if (LevelInfo.ExistsOffline(level) || LevelInfo.ExistsOffline(level + "00")) {
|
||||
|
@ -58,9 +58,9 @@ namespace MCGalaxy.Commands {
|
||||
|
||||
if (p.hidden) {
|
||||
Entities.GlobalDespawn(p, false);
|
||||
TabList.Add(p, p, 0xFF);
|
||||
if (messageOps && !p.otherRankHidden)
|
||||
Chat.MessageOps("To Ops -" + p.ColoredName + "%S- is now &finvisible%S.");
|
||||
|
||||
string discMsg = PlayerDB.GetLogoutMessage(p);
|
||||
Player.SendChatFrom(p, "&c- " + p.FullName + " %S" + discMsg, false);
|
||||
Server.IRC.Say(p.DisplayName + " %Sleft the game (" + discMsg + "%S)");
|
||||
@ -68,7 +68,6 @@ namespace MCGalaxy.Commands {
|
||||
Server.hidden.AddOrReplace(p.name);
|
||||
} else {
|
||||
Entities.GlobalSpawn(p, false);
|
||||
p.hidden = false;
|
||||
p.otherRankHidden = false;
|
||||
p.oHideRank = LevelPermission.Null;
|
||||
if (messageOps)
|
||||
@ -80,6 +79,8 @@ namespace MCGalaxy.Commands {
|
||||
if (p.adminchat) adminchat.Use(p, message);
|
||||
Server.hidden.Remove(p.name);
|
||||
}
|
||||
|
||||
TabList.Add(p, p, 0xFF);
|
||||
Server.hidden.Save(false);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user