Replace invalid materials for 1.12 default custom disguise libraryaddict
This commit is contained in:
parent
1d6e1c57b7
commit
1cb9c0ee4a
@ -10,6 +10,7 @@ import me.libraryaddict.disguise.utilities.packets.PacketsManager;
|
|||||||
import me.libraryaddict.disguise.utilities.parser.DisguiseParseException;
|
import me.libraryaddict.disguise.utilities.parser.DisguiseParseException;
|
||||||
import me.libraryaddict.disguise.utilities.parser.DisguiseParser;
|
import me.libraryaddict.disguise.utilities.parser.DisguiseParser;
|
||||||
import me.libraryaddict.disguise.utilities.parser.DisguisePerm;
|
import me.libraryaddict.disguise.utilities.parser.DisguisePerm;
|
||||||
|
import me.libraryaddict.disguise.utilities.reflection.NmsVersion;
|
||||||
import me.libraryaddict.disguise.utilities.translations.LibsMsg;
|
import me.libraryaddict.disguise.utilities.translations.LibsMsg;
|
||||||
import me.libraryaddict.disguise.utilities.translations.TranslateType;
|
import me.libraryaddict.disguise.utilities.translations.TranslateType;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
@ -310,10 +311,8 @@ public class DisguiseConfig {
|
|||||||
explain.createNewFile();
|
explain.createNewFile();
|
||||||
|
|
||||||
try (PrintWriter out = new PrintWriter(explain)) {
|
try (PrintWriter out = new PrintWriter(explain)) {
|
||||||
out.println(
|
out.println("This folder is used to store .png files for uploading with the /savedisguise or " +
|
||||||
"This folder is used to store .png files for uploading with the /savedisguise or " +
|
"/grabskin " + "commands");
|
||||||
"/grabskin " +
|
|
||||||
"commands");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (IOException e) {
|
catch (IOException e) {
|
||||||
@ -467,6 +466,11 @@ public class DisguiseConfig {
|
|||||||
for (String key : section.getKeys(false)) {
|
for (String key : section.getKeys(false)) {
|
||||||
String toParse = section.getString(key);
|
String toParse = section.getString(key);
|
||||||
|
|
||||||
|
if (!NmsVersion.v1_13.isSupported() && key.equals("libraryaddict")) {
|
||||||
|
toParse = toParse.replace("GOLDEN_BOOTS,GOLDEN_LEGGINGS,GOLDEN_CHESTPLATE,GOLDEN_HELMET",
|
||||||
|
"GOLD_BOOTS,GOLD_LEGGINGS,GOLD_CHESTPLATE,GOLD_HELMET");
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
addCustomDisguise(key, toParse);
|
addCustomDisguise(key, toParse);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user