Bukkit/Bukkit — pull request #719 by iKeirNez (2012-11-22 10:04:50+00:00)
Title: Added method isShuttingDown

This method will allow plugins to check if the server is being shutdown, this is most useful in the onDisable method if there is something shutdown specific the plugin has to do.

CraftBukkit: https://github.com/Bukkit/CraftBukkit/pull/935