Fixed logger message for replace in config method.
This commit is contained in:
parent
7babd6c1cb
commit
cea5048148
@ -260,12 +260,18 @@ public class P extends MPlugin {
|
|||||||
|
|
||||||
replaceStringInConfig("fupgrades.MainMenu.Spawners.SpawnerItem.Type", "MOB_SPAWNER", "SPAWNER");
|
replaceStringInConfig("fupgrades.MainMenu.Spawners.SpawnerItem.Type", "MOB_SPAWNER", "SPAWNER");
|
||||||
|
|
||||||
|
replaceStringInConfig("fperm-gui.action.access.allow", "LIME", "LIME_STAINED_GLASS");
|
||||||
|
|
||||||
|
replaceStringInConfig("fperm-gui.action.access.deny", "RED", "RED_STAINED_GLASS");
|
||||||
|
|
||||||
|
replaceStringInConfig("fperm-gui.action.access.undefined", "CYAN", "CYAN_STAINED_GLASS");
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void replaceStringInConfig(String path, String stringToReplace, String replacementString) {
|
public void replaceStringInConfig(String path, String stringToReplace, String replacementString) {
|
||||||
if (getConfig().getString(path).equals(stringToReplace)) {
|
if (getConfig().getString(path).equals(stringToReplace)) {
|
||||||
P.p.log("Replacing legacy material '" + stringToReplace + "' with '" + stringToReplace + "' for config node '" + path + "'.");
|
P.p.log("Replacing legacy material '" + stringToReplace + "' with '" + replacementString + "' for config node '" + path + "'.");
|
||||||
getConfig().set(path, replacementString);
|
getConfig().set(path, replacementString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user