Пример #1
0
 public static void save()
 {
     if (Level.info.type == ELevelType.SURVIVAL)
     {
         for (int i = 0; i < Provider.clients.Count; i++)
         {
             if (Provider.clients[i].model != null)
             {
                 Player component = Provider.clients[i].model.GetComponent <Player>();
                 component.save();
             }
         }
         VehicleManager.save();
         BarricadeManager.save();
         StructureManager.save();
         ObjectManager.save();
         LightingManager.save();
         GroupManager.save();
     }
     if (Dedicator.isDedicated)
     {
         SteamWhitelist.save();
         SteamBlacklist.save();
         SteamAdminlist.save();
     }
 }
Пример #2
0
        // Token: 0x06001E36 RID: 7734 RVA: 0x000A5288 File Offset: 0x000A3688
        protected override void execute(CSteamID executorID, string parameter)
        {
            if (!Dedicator.isDedicated)
            {
                return;
            }
            if (!Provider.isServer)
            {
                CommandWindow.LogError(this.localization.format("NotRunningErrorText"));
                return;
            }
            CSteamID csteamID;

            if (!PlayerTool.tryGetSteamID(parameter, out csteamID))
            {
                CommandWindow.LogError(this.localization.format("NoPlayerErrorText", new object[]
                {
                    parameter
                }));
                return;
            }
            SteamAdminlist.unadmin(csteamID);
            CommandWindow.Log(this.localization.format("UnadminText", new object[]
            {
                csteamID
            }));
        }