//////////////////////////////////////// /// Plugin Related Hooks //////////////////////////////////////// void Loaded() { Instance = this; LoadMessages(); LoadData(ref _players); }
private void Loaded() { _instance = this; LoadMessages(); MigrateData(); LoadData(ref _players); }
//////////////////////////////////////// /// Plugin Related Hooks //////////////////////////////////////// void Loaded() { Instance = this; LoadMessages(); LoadData(ref _players); PrintWarning("This plugin was moved! New URL: http://oxidemod.org/plugins/timed-permissions.1926/"); timer.Repeat(120, 0, () => PrintWarning("This plugin was moved! New URL: http://oxidemod.org/plugins/timed-permissions.1926/")); }
private void Loaded() { _plugin = this; LoadData(ref _playerInformationCollection); if (_playerInformationCollection == null) { _playerInformationCollection = new List <PlayerInformation>(); SaveData(_playerInformationCollection); } _plugin.timer.Repeat(60, 0, () => { for (int i = _playerInformationCollection.Count - 1; i >= 0; i--) { PlayerInformation playerInformation = _playerInformationCollection[i]; playerInformation.Update(); } }); }