Example #1
0
    private static void DailyReset()
    {
        List <Player> players = GameServer.PlayerManager.GetAllPlayers();

        foreach (Player player in players)
        {
            player.GatheringCount = new();
            DatabaseManager.Characters.Update(player);
        }
        DatabaseManager.RunQuery("UPDATE `characters` SET gathering_count = '[]'");

        DatabaseManager.ServerInfo.SetLastDailyReset(TimeInfo.CurrentDate());
    }