Source code of my plugin WorldEffects. http://dev.bukkit.org/bukkit-plugins/worldeffects/