mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Use options for tablist.
This commit is contained in:
parent
2a5a666bfc
commit
47048bcfc7
@ -58,7 +58,7 @@ namespace MCGalaxy.Commands
|
||||
Player.GlobalMessage("-" + p.ColoredName + "%S- is no longer AFK");
|
||||
Server.IRC.Say(p.DisplayName + " is no longer AFK");
|
||||
}
|
||||
TabList.UpdateToAll(p, true);
|
||||
TabList.UpdateToLevel(p, true);
|
||||
}
|
||||
|
||||
public override void Help(Player p) {
|
||||
|
@ -1007,7 +1007,7 @@ try { SendBlockchange(pos1.x, pos1.y, pos1.z, Block.waterstill); } catch { }
|
||||
IsAfk = false;
|
||||
Player.GlobalMessage("-" + ColoredName + "%S- is no longer AFK");
|
||||
Server.IRC.Say(DisplayName + " is no longer AFK");
|
||||
TabList.UpdateToAll(this, true);
|
||||
TabList.UpdateToLevel(this, true);
|
||||
}
|
||||
// Typing //Command appears in chat as /command
|
||||
// Suggested by McMrCat
|
||||
|
@ -25,7 +25,7 @@ namespace MCGalaxy {
|
||||
|
||||
/// <summary> Updates the tab list entry for this player to all other players
|
||||
/// (whose clients support it) in the player's world. </summary>
|
||||
internal static void UpdateToAll(Player p, bool self) {
|
||||
internal static void UpdateToLevel(Player p, bool self) {
|
||||
Player[] players = PlayerInfo.Online.Items;
|
||||
p.Game.lastSpawnColor = p.Game.Infected ? ZombieGame.InfectCol : p.color;
|
||||
|
||||
@ -47,6 +47,7 @@ namespace MCGalaxy {
|
||||
public static void Add(Player dst, Player p, byte id) {
|
||||
if (!dst.hasExtList) return;
|
||||
byte grpPerm = (byte)(offset - p.group.Permission);
|
||||
if (!Server.TablistRankSorted) grpPerm = 0;
|
||||
|
||||
if (p.IsAfk) {
|
||||
string col = Entities.GetSupportedCol(dst, p.color);
|
||||
|
@ -160,12 +160,16 @@ namespace MCGalaxy
|
||||
public static DateTime restarttime;
|
||||
|
||||
public static bool chatmod = false;
|
||||
[ConfigBool("log-notes", "Other", null, true)]
|
||||
[ConfigBool("log-notes", "Other", null, true)]
|
||||
public static bool LogNotes = true;
|
||||
|
||||
[ConfigPerm("os-perbuild-default", "other", null, LevelPermission.Nobody)]
|
||||
public static LevelPermission osPerbuildDefault = LevelPermission.Nobody;
|
||||
|
||||
[ConfigBool("tablist-rank-sorted", "Other", null, true)]
|
||||
public static bool TablistRankSorted = true;
|
||||
[ConfigBool("tablist-global", "Other", null, false)]
|
||||
public static bool TablistGlobal = false;
|
||||
|
||||
//Global VoteKick In Progress Flag
|
||||
public static bool voteKickInProgress = false;
|
||||
public static int voteKickVotesNeeded = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user