Added temporary method that fixes missing method in old Bukkit versions