Package org.mcmonkey.sentinel.utilities
Class ConfigUpdater
java.lang.Object
org.mcmonkey.sentinel.utilities.ConfigUpdater
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
fixComments
(com.freneticllc.freneticutilities.freneticdatasyntax.FDSData user, com.freneticllc.freneticutilities.freneticdatasyntax.FDSData correct) static boolean
transferKeys
(com.freneticllc.freneticutilities.freneticdatasyntax.FDSSection fileSection, com.freneticllc.freneticutilities.freneticdatasyntax.FDSSection correctSection) static String
updateConfig
(String configFile, String correctConfig) Adds missing entries to a config file, based on a modern config file.
-
Constructor Details
-
ConfigUpdater
public ConfigUpdater()
-
-
Method Details
-
updateConfig
Adds missing entries to a config file, based on a modern config file. Returns the patched config if patches were made, otherwise returns null. -
fixComments
public static boolean fixComments(com.freneticllc.freneticutilities.freneticdatasyntax.FDSData user, com.freneticllc.freneticutilities.freneticdatasyntax.FDSData correct) -
transferKeys
public static boolean transferKeys(com.freneticllc.freneticutilities.freneticdatasyntax.FDSSection fileSection, com.freneticllc.freneticutilities.freneticdatasyntax.FDSSection correctSection)
-