在运行时获取版本

@Override
public void onEnable() {
    String version = Bukkit.getBukkitVersion();    //The string version of this bukkit server
}