Changed to be compliant with new Bukkit policies