You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getLogger().error("[OpenCommand] There was an error while trying to load the configuration from config.json. Please make sure that there are no syntax errors. If you want to start with a default configuration, delete your existing config.json.");
data = JsonUtils.loadToClass(fileReader, OpenCommandData.class);
131
+
try {
132
+
data = JsonUtils.decode(Files.readString(dataFile.toPath(), StandardCharsets.UTF_8),
133
+
OpenCommandData.class);
130
134
} catch (Exceptionexception) {
131
135
data = newOpenCommandData();
132
136
getLogger().error("[OpenCommand] There was an error while trying to load the data from data.json. Please make sure that there are no syntax errors. If you want to start with a default data, delete your existing data.json.");
0 commit comments