Пример #1
0
        private void OnServerInitialized()
        {
            permission.RegisterPermission("blueprintmanager.admin", this);

            permission.RegisterPermission("blueprintmanager.all", this);
            permission.RegisterPermission("blueprintmanager.config", this);
            permission.RegisterPermission("blueprintmanager.noworkbench", this);

            Instance       = this;
            _configuration = new Configuration();

            SpawnWorkbench();

            foreach (var player in BasePlayer.activePlayerList)
            {
                OnPlayerInit(player);
            }

            timer.Repeat(10, 0, () =>
            {
                if (_unlockQueue.Any())
                {
                    _unlockQueue.Dequeue()();
                }
            });
        }
        private void OnServerInitialized()
        {
            permission.RegisterPermission("blueprintmanager.admin", this);

            permission.RegisterPermission("blueprintmanager.all", this);
            permission.RegisterPermission("blueprintmanager.config", this);
            permission.RegisterPermission("blueprintmanager.noworkbench", this);

            Instance       = this;
            _configuration = new Configuration();

            SpawnWorkbench();

            foreach (var player in BasePlayer.activePlayerList)
            {
                OnPlayerInit(player);
            }
        }