Beispiel #1
0
 private static void SavePlayerData(ClientInfo _cInfo, PlayerDataFile _playerDataFile)
 {
     try
     {
         if (_cInfo != null && _playerDataFile != null)
         {
             if (HighPingKicker.IsEnabled)
             {
                 HighPingKicker.Exec(_cInfo);
             }
             if (InvalidItems.IsEnabled || InvalidItems.Invalid_Stack)
             {
                 InvalidItems.CheckInv(_cInfo, _playerDataFile);
             }
             if (DupeLog.IsEnabled)
             {
                 DupeLog.Exec(_cInfo, _playerDataFile);
             }
             if (LevelUp.IsEnabled)
             {
                 LevelUp.CheckLevel(_cInfo);
             }
         }
     }
     catch (Exception e)
     {
         Log.Out(string.Format("[SERVERTOOLS] Error in API.SavePlayerData: {0}", e.Message));
     }
 }
Beispiel #2
0
 private static void Init8(string _playerId, List <string> _commands)
 {
     LevelUp.LevelCommandDelayed(_playerId, _commands);
 }