Ejemplo n.º 1
0
 protected override void Load()
 {
     Instance = this;
     Database = new DatabaseManager();
     U.Events.OnPlayerConnected += Events_OnPlayerConnected;
     MessageColor = Configuration.Instance.MessageColor;
 }
        protected override void Load()
        {
            Instance = this;
            Database = new DatabaseManager(Directory, "balances.json");
            Database.LoadData();
            U.Events.OnPlayerConnected += Events_OnPlayerConnected;
            SaveManager.onPostSave     += Database.SaveData;
            PlayerSkills.OnExperienceChanged_Global += OnExperienceChanged;

            Logger.Log($"{Name} {Assembly.GetName().Version} has been loaded!", ConsoleColor.Yellow);
        }
Ejemplo n.º 3
0
        protected override void Load()
        {
            Instance = this;
            Db       = PlayerLibrary.DbMySQL.Db;
            Database = new DatabaseManager();

            Configuration.Instance.DatabaseAddress  = PlayerLibrary.PlayerLibrary.Instance.Configuration.Instance.DatabaseAddress;
            Configuration.Instance.DatabaseName     = PlayerLibrary.PlayerLibrary.Instance.Configuration.Instance.DatabaseName;
            Configuration.Instance.DatabaseUsername = PlayerLibrary.PlayerLibrary.Instance.Configuration.Instance.DatabaseUsername;
            Configuration.Instance.DatabasePassword = PlayerLibrary.PlayerLibrary.Instance.Configuration.Instance.DatabasePassword;
            Configuration.Instance.DatabasePort     = PlayerLibrary.PlayerLibrary.Instance.Configuration.Instance.DatabasePort;

            U.Events.OnPlayerConnected    += Events_OnPlayerConnected;
            U.Events.OnPlayerDisconnected += Events_OnPlayerDisconnected;
            MessageColor = Configuration.Instance.MessageColor;
        }
Ejemplo n.º 4
0
 protected override void Load()
 {
     Instance = this;
     Database = new DatabaseManager();
     U.Events.OnPlayerConnected += Events_OnPlayerConnected;
 }
Ejemplo n.º 5
0
 protected override void Load()
 {
     Instance = this;
     Database = new DatabaseManager();
 }