public void Event_OnPlayerLoginAttemptAsync(Client client, object[] arguments)
        {
            string username = (string)arguments[0];
            string password = (string)arguments[1];

            TLPlayer playerLookup;

            var query = db.GetList <TLPlayer>("username", username).Result;

            if (query.Count == 0 || query == null)
            {
                client.SendChatMessage("~r~Data was not found");
                client.TriggerEvent("LoginResult", 0);
                return;
            }

            playerLookup = query[0];

            if (!playerLookup.CheckPassword(password))
            {
                client.SendChatMessage("~r~Data was not found for inputs provided");
                client.TriggerEvent("LoginResult", 0);
                return;
            }

            client.SetData("ID", playerLookup.Id);
            TLLoginHandler.FinishLogin(client);
        }
        public void EVENT_ResourceStart()
        {
            // Load World Defaults
            var         world         = db.GetList <TLWorldInfo>().Result;
            TLWorldInfo worldSettings = new TLWorldInfo();

            if (world.Count == 0)
            {
                db.Insert <TLWorldInfo>(worldSettings);
            }
            else
            {
                worldSettings = world[0];
            }



            worldSettings.LoadDefaultWeather();
            worldSettings.LoadDefaultTime();
        }