Bukkit/CraftBukkit — pull request #935 by iKeirNez (2012-11-22 10:03:49+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.