Suppress deprecated methods

- Small fix while we wait for bukkit to come with alternative