Jump to content

OnResourceStop not getting called


offsetx

Recommended Posts

OnResourceStart is working fine but OnResoureStop doesn't

 

Quote

        [ServerEvent(Event.ResourceStop)]
        public void OnResourceStop()
        {
            NAPI.Util.ConsoleOutput("what");
            var players = NAPI.Pools.GetAllPlayers();
            foreach (var player in players)
            {
                Data.SaveAccount(player);

                if (Data.Character.ContainsKey(player)) Data.Character.Remove(player);
                NAPI.Data.ResetEntityData(player, "User");
            }
        }

When I close the server to test its never getting called

btw I'm using 0.3.7

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...