Dragonphase/Kits — pull request #8 by traksag (2014-09-06 22:09:10+00:00)
Title: Nullify static plugin references

Referencing big objects statically can result in memory leaks. Even though Bukkit's plugin system automatically unloads classes (clears statics), it's never excessive or wrong to explicitly nullify static references to large objects (plugin instances). When the plugin is to be disabled and thus no longer needed, references to it can be disposed. For this reason nullifying of static references should be done in JavaPlugin#onDisable().