I know about setUncaughtExceptionHandler, the finalize method, and Runtime.thatMethodThatRunsAThreadOnJVMTerminate, I was wondering if Sponge had some way to set a handler on crash, if not, thoughts on how this could be implemented?
I was thinking that a separate handler class would be designed that can’t throw any errors (and is wrapped in a try/catch block when invoked so that runtime errors don’t crash the crash), This would be a good way to ensure that any data that is saved on server shutdown is still saved. I think I may create a github issue for this…