Fixed some compile warnings (deprecated bukkit methods)