// Token: 0x06001DC7 RID: 7623 RVA: 0x000A0AFC File Offset: 0x0009EEFC protected override void execute(CSteamID executorID, string parameter) { if (!Dedicator.isDedicated) { return; } if (SteamAdminlist.list.Count == 0) { CommandWindow.LogError(this.localization.format("NoAdminsErrorText")); return; } CommandWindow.Log(this.localization.format("AdminsText")); for (int i = 0; i < SteamAdminlist.list.Count; i++) { SteamAdminID steamAdminID = SteamAdminlist.list[i]; CommandWindow.Log(this.localization.format("AdminNameText", new object[] { steamAdminID.playerID })); CommandWindow.Log(this.localization.format("AdminJudgeText", new object[] { steamAdminID.judgeID })); } }
// Token: 0x06002FA6 RID: 12198 RVA: 0x0013B76C File Offset: 0x00139B6C public static void save() { River river = ServerSavedata.openRiver("/Server/Adminlist.dat", false); river.writeByte(SteamAdminlist.SAVEDATA_VERSION); river.writeUInt16((ushort)SteamAdminlist.list.Count); ushort num = 0; while ((int)num < SteamAdminlist.list.Count) { SteamAdminID steamAdminID = SteamAdminlist.list[(int)num]; river.writeSteamID(steamAdminID.playerID); river.writeSteamID(steamAdminID.judgeID); num += 1; } river.closeRiver(); }
// Token: 0x06002FA5 RID: 12197 RVA: 0x0013B6E0 File Offset: 0x00139AE0 public static void load() { SteamAdminlist._list = new List <SteamAdminID>(); SteamAdminlist.ownerID = CSteamID.Nil; if (ServerSavedata.fileExists("/Server/Adminlist.dat")) { River river = ServerSavedata.openRiver("/Server/Adminlist.dat", true); byte b = river.readByte(); if (b > 1) { ushort num = river.readUInt16(); for (ushort num2 = 0; num2 < num; num2 += 1) { CSteamID newPlayerID = river.readSteamID(); CSteamID newJudgeID = river.readSteamID(); SteamAdminID item = new SteamAdminID(newPlayerID, newJudgeID); SteamAdminlist.list.Add(item); } } } }