private static void updateVersions() {
        try {
            String path = VersionUtil.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath();
            Attributes a = getManifest(path).getMainAttributes();
            if (a.getValue("Plugin-Version") != null) {
                PLUGIN_VERSION = a.getValue("Plugin-Version");
            }

            if (a.getValue("Minecraft-Version") != null) {
                MINECRAFT_VERSION = a.getValue("Minecraft-Version");
            }
            if (a.getValue("CraftBukkit-Version") != null) {
                CRAFTBUKKIT_VERSION = a.getValue("CraftBukkit-Version");
            }
            if (a.getValue("NMS-Package") != null) {
                NMS_PACKAGE = a.getValue("NMS-Package");
            }
        } catch (Exception e) {
            Logger.log(Logger.LogLevel.SEVERE, "Failed to obtain Minecraft Server version.", e, true);
        }
    }