Error checking
Switched to Bukkit API from Craftbukkit