Fixed NullPointerException in plugin.getReward