remove usage of bukkit deprecated method