Update development #5
6 arquivos alterados com 7 adições e 7 exclusões
Merge branch 'development' into temp
commit
0a4cedc853
|
|
@ -1,4 +1,4 @@
|
||||||

|

|
||||||
# AutoWhitelist
|
# AutoWhitelist
|
||||||
More information at: https://modrinth.com/mod/autowhitelist
|
More information at: https://modrinth.com/mod/autowhitelist
|
||||||
Beta builds: https://ci.codemc.io/job/Awakened-Redstone/job/AutoWhitelist/
|
Beta builds: https://ci.codemc.io/job/Awakened-Redstone/job/AutoWhitelist/
|
||||||
|
|
@ -76,4 +76,4 @@ tasks.withType(JavaCompile) {
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
from "LICENSE"
|
from "LICENSE"
|
||||||
}
|
}
|
||||||
|
|
@ -6,4 +6,4 @@ mod_version=beta-5.0.1
|
||||||
maven_group=com.awakenedredstone
|
maven_group=com.awakenedredstone
|
||||||
archives_base_name=autowhitelist
|
archives_base_name=autowhitelist
|
||||||
|
|
||||||
fabric_version=0.46.2+1.18
|
fabric_version=0.46.2+1.18
|
||||||
2
gradle/wrapper/gradle-wrapper.properties
externo
2
gradle/wrapper/gradle-wrapper.properties
externo
|
|
@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
@ -29,7 +29,7 @@ public class Config {
|
||||||
String json = reader.lines().collect(Collectors.joining("\n"));
|
String json = reader.lines().collect(Collectors.joining("\n"));
|
||||||
StringReader stringReader = new StringReader(json);
|
StringReader stringReader = new StringReader(json);
|
||||||
|
|
||||||
JsonObject jsonObject = JsonParser.parseString(json).getAsJsonObject();
|
JsonObject jsonObject = JsonParser.parseString(json).getAsJsonObject();
|
||||||
if (jsonObject.get("version") == null || jsonObject.get("version").getAsFloat() != configVersion) {
|
if (jsonObject.get("version") == null || jsonObject.get("version").getAsFloat() != configVersion) {
|
||||||
|
|
||||||
jsonObject.add("owners", new JsonArray());
|
jsonObject.add("owners", new JsonArray());
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ public class Bot implements Runnable {
|
||||||
} catch (LoginException e) {
|
} catch (LoginException e) {
|
||||||
AutoWhitelist.LOGGER.error("Failed to start bot, please verify the token.");
|
AutoWhitelist.LOGGER.error("Failed to start bot, please verify the token.");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
AutoWhitelist.LOG4J_LOGGER.error(e);
|
AutoWhitelist.LOG4J_LOGGER.error(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Referência em uma nova issue