Changed update method to be compliant with new bukkit guidelines.