Package de.sprax2013.betterchairs
Interface Settings.ConfigUpgradeTask
-
- Enclosing class:
- Settings
protected static interface Settings.ConfigUpgradeTask
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
doUpgrade(String version, File file, org.bukkit.configuration.file.YamlConfiguration yaml)
This method is called after a backup file has been created Returningfalse
, indicates that the upgrade failed and that the current config should be replaced with the default one
-
-
-
Method Detail
-
doUpgrade
boolean doUpgrade(String version, File file, org.bukkit.configuration.file.YamlConfiguration yaml)
This method is called after a backup file has been created Returningfalse
, indicates that the upgrade failed and that the current config should be replaced with the default one- Parameters:
version
- The current config version or"-1"
if none setfile
- The config fileyaml
- The current YAML-File- Returns:
- true on success, false on failure
-
-