Source from KillMoney (http://dev.bukkit.org/bukkit-plugins/killmoney/)