How are you actually running it in your onEnable()? And by the way, use Bukkit.getConsoleSender() in the place of 'sender', as you never initialise it, so it will null and throw a NPE