mirror of
https://github.com/colbster937/originblacklist.git
synced 2026-03-23 05:47:41 +00:00
Compare commits
6 Commits
v2.0.9
...
f4261e0d6c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f4261e0d6c | ||
|
|
b91b4f93e5 | ||
|
|
2e05fb6031 | ||
|
|
a7ea336158 | ||
|
|
0a2c39fbd4 | ||
|
|
df17431df0 |
@@ -71,13 +71,13 @@ dependencies {
|
|||||||
compileOnly("net.lax1dude.eaglercraft.backend:api-velocity:1.0.0")
|
compileOnly("net.lax1dude.eaglercraft.backend:api-velocity:1.0.0")
|
||||||
compileOnly("net.lax1dude.eaglercraft.backend:api-bungee:1.0.0")
|
compileOnly("net.lax1dude.eaglercraft.backend:api-bungee:1.0.0")
|
||||||
compileOnly("net.lax1dude.eaglercraft.backend:api-bukkit:1.0.0")
|
compileOnly("net.lax1dude.eaglercraft.backend:api-bukkit:1.0.0")
|
||||||
compileOnly("me.clip:placeholderapi:2.11.7")
|
compileOnly("me.clip:placeholderapi:2.12.1")
|
||||||
compileOnly("net.william278:papiproxybridge:1.8.4")
|
compileOnly("net.william278:papiproxybridge:1.8.4")
|
||||||
implementation("org.semver4j:semver4j:6.0.0")
|
implementation("org.semver4j:semver4j:6.0.0")
|
||||||
implementation("de.marhali:json5-java:3.0.0")
|
implementation("de.marhali:json5-java:3.0.0")
|
||||||
implementation("net.kyori:adventure-text-minimessage:4.26.1")
|
implementation("net.kyori:adventure-text-minimessage:4.26.1")
|
||||||
implementation("net.kyori:adventure-text-serializer-legacy:4.26.1")
|
implementation("net.kyori:adventure-text-serializer-legacy:4.26.1")
|
||||||
implementation("com.github.seancfoley:ipaddress:5.5.1")
|
implementation("com.github.seancfoley:ipaddress:5.6.1")
|
||||||
implementation("org.bstats:bstats-bukkit:3.1.0")
|
implementation("org.bstats:bstats-bukkit:3.1.0")
|
||||||
implementation("org.bstats:bstats-bungeecord:3.1.0")
|
implementation("org.bstats:bstats-bungeecord:3.1.0")
|
||||||
implementation("org.bstats:bstats-velocity:3.1.0")
|
implementation("org.bstats:bstats-velocity:3.1.0")
|
||||||
@@ -174,7 +174,7 @@ tasks.withType<RunServer>().configureEach {
|
|||||||
jvmArgs("-Dcom.mojang.eula.agree=true")
|
jvmArgs("-Dcom.mojang.eula.agree=true")
|
||||||
downloadPlugins {
|
downloadPlugins {
|
||||||
github("lax1dude", "eaglerxserver", "v" + EAGXS_VER, "EaglerXServer.jar")
|
github("lax1dude", "eaglerxserver", "v" + EAGXS_VER, "EaglerXServer.jar")
|
||||||
modrinth("placeholderapi", "2.11.7")
|
modrinth("placeholderapi", "2.12.1")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -97,9 +97,6 @@ public final class OriginBlacklist {
|
|||||||
if (this.isMetricsEnabled()) {
|
if (this.isMetricsEnabled()) {
|
||||||
this.metrics.start();
|
this.metrics.start();
|
||||||
}
|
}
|
||||||
this.plugin.scheduleRepeat(() -> {
|
|
||||||
this.plugin.log(EnumLogLevel.INFO, String.valueOf(this.isMetricsEnabled()));
|
|
||||||
}, 1, TimeUnit.SECONDS);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void shutdown() {
|
public final void shutdown() {
|
||||||
@@ -271,11 +268,13 @@ public final class OriginBlacklist {
|
|||||||
} finally {
|
} finally {
|
||||||
conn.disconnect();
|
conn.disconnect();
|
||||||
}
|
}
|
||||||
|
if (Files.exists(upd)) {
|
||||||
Files.delete(jar);
|
Files.delete(jar);
|
||||||
Files.delete(bak);
|
Files.delete(bak);
|
||||||
this.jarFile = upd;
|
this.jarFile = upd;
|
||||||
action1.run();
|
action1.run();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
} catch (final Throwable t) {
|
} catch (final Throwable t) {
|
||||||
Files.move(bak, jar, StandardCopyOption.REPLACE_EXISTING);
|
Files.move(bak, jar, StandardCopyOption.REPLACE_EXISTING);
|
||||||
throw t;
|
throw t;
|
||||||
|
|||||||
@@ -326,7 +326,7 @@ public final class OriginBlacklistConfig {
|
|||||||
addJSONObj(uObj, "enabled", Json5Primitive.fromBoolean(true), null);
|
addJSONObj(uObj, "enabled", Json5Primitive.fromBoolean(true), null);
|
||||||
addJSONObj(uObj, "allow_snapshots", Json5Primitive.fromBoolean(false), null);
|
addJSONObj(uObj, "allow_snapshots", Json5Primitive.fromBoolean(false), null);
|
||||||
addJSONObj(uObj, "check_timer", Json5Primitive.fromNumber(3600), null);
|
addJSONObj(uObj, "check_timer", Json5Primitive.fromNumber(3600), null);
|
||||||
addJSONObj(uObj, "auto_update", Json5Primitive.fromBoolean(true), null);
|
addJSONObj(uObj, "auto_update", Json5Primitive.fromBoolean(false), null);
|
||||||
addJSONObj(obj, "update_checker", uObj, null);
|
addJSONObj(obj, "update_checker", uObj, null);
|
||||||
addJSONObj(obj, "blacklist_http_api", Json5Primitive.fromBoolean(false), null);
|
addJSONObj(obj, "blacklist_http_api", Json5Primitive.fromBoolean(false), null);
|
||||||
addJSONObj(obj, "blacklist_to_whitelist", Json5Primitive.fromBoolean(false), null);
|
addJSONObj(obj, "blacklist_to_whitelist", Json5Primitive.fromBoolean(false), null);
|
||||||
|
|||||||
Reference in New Issue
Block a user