run-task
run-task copied to clipboard
Option for graceful stop of server
It would be really useful to be able to just run the runServer task again inside of IntelliJ, and that the server then closes gracefully, like if you Ctrl-C inside of the console. This can be done by sending a SIGINT to the JVM, so it has to be possible somehow.
Maybe also a "config" option for people that (don't) need this functionality. Though the maintainer would have to decide what's the default, I'd be happy with both.
I don't think this is feasible without an intellij plugin
Doesn't IntelliJ default to "stop and re-run" when you click run while it's already running?
Yeah but it stops with an error and doesn't properly shut down the server so you will never execute onDisable
with the plugin (unless you manually type stop in the console)