Fixing the warnings "deprecated"

Let's stop using minecraft code et let's start using ONLY bukkit API