Fix for Bukkit 1.7.2 and higher