Fix for use with Bukkit.