offsetx Posted November 21, 2020 Share Posted November 21, 2020 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 More sharing options...
DripUdo Posted December 6, 2020 Share Posted December 6, 2020 Its not getting called by just Exiting the server(hit red x). i think you have to press ctrl + c in console but im not sure. Link to comment Share on other sites More sharing options...
Guest Posted December 6, 2020 Share Posted December 6, 2020 (edited) . Edited December 13, 2020 by Guest Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now