mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-12-24 16:58:50 +01:00
Fix flag values being loaded as strings
This commit is contained in:
parent
d8849f718c
commit
2c16c767e7
@ -1841,7 +1841,7 @@ public class SQLManager implements AbstractDB {
|
||||
try {
|
||||
String flag_str = split[1].replaceAll("\u00AF", ":").replaceAll("\u00B4", ",");
|
||||
Flag<?> flag = FlagManager.getFlag(split[0]);
|
||||
flags.put(flag, flag_str);
|
||||
flags.put(flag, flag.parseValue(flag_str));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
exception = true;
|
||||
@ -1850,7 +1850,7 @@ public class SQLManager implements AbstractDB {
|
||||
element = element.replaceAll("\u00AF", ":").replaceAll("\u00B4", ",");
|
||||
if (StringMan.isAlpha(element.replaceAll("_", "").replaceAll("-", ""))) {
|
||||
Flag flag = FlagManager.getFlag(element);
|
||||
flags.put(flag, "");
|
||||
flags.put(flag, flag.parseValue(""));
|
||||
} else {
|
||||
PS.debug("INVALID FLAG: " + element);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user