mirror of
https://github.com/colbster937/originblacklist.git
synced 2026-02-04 02:57:41 +00:00
relocate deps
This commit is contained in:
@@ -148,8 +148,9 @@ tasks.withType<ShadowJar>().configureEach {
|
|||||||
delete(layout.buildDirectory.dir("libs"))
|
delete(layout.buildDirectory.dir("libs"))
|
||||||
mkdir(layout.buildDirectory.dir("libs"))
|
mkdir(layout.buildDirectory.dir("libs"))
|
||||||
}
|
}
|
||||||
relocate("org.bstats", "$PLUGIN_DOMN.$PLUGIN_IDEN.shaded.bstats")
|
relocate("inet.ipaddr", "$PLUGIN_DOMN.$PLUGIN_IDEN.shaded.ipaddress")
|
||||||
relocate("de.marhali.json5", "$PLUGIN_DOMN.$PLUGIN_IDEN.shaded.json5")
|
relocate("de.marhali.json5", "$PLUGIN_DOMN.$PLUGIN_IDEN.shaded.json5")
|
||||||
|
relocate("org.bstats", "$PLUGIN_DOMN.$PLUGIN_IDEN.shaded.bstats")
|
||||||
relocate("org.semver4j.semver4j", "$PLUGIN_DOMN.$PLUGIN_IDEN.shaded.semver4j")
|
relocate("org.semver4j.semver4j", "$PLUGIN_DOMN.$PLUGIN_IDEN.shaded.semver4j")
|
||||||
// relocate("net.kyori.adventure", "$PLUGIN_DOMN.$PLUGIN_IDEN.shaded.adventure")
|
// relocate("net.kyori.adventure", "$PLUGIN_DOMN.$PLUGIN_IDEN.shaded.adventure")
|
||||||
archiveFileName.set("$PLUGIN_NAME-$PLUGIN_VERS.jar")
|
archiveFileName.set("$PLUGIN_NAME-$PLUGIN_VERS.jar")
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ public final class OriginBlacklist {
|
|||||||
conn.disconnect();
|
conn.disconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void checkForUpdates(Runnable action1, Runnable action2) {
|
public final void checkForUpdates(final Runnable action1, final Runnable action2) {
|
||||||
if (this.config.getBoolean("update_checker.enabled")) {
|
if (this.config.getBoolean("update_checker.enabled")) {
|
||||||
this.plugin.runAsync(() -> {
|
this.plugin.runAsync(() -> {
|
||||||
this.updateURL = UpdateChecker.checkForUpdates(PLUGIN_REPO, this.plugin.getPluginVersion(),
|
this.updateURL = UpdateChecker.checkForUpdates(PLUGIN_REPO, this.plugin.getPluginVersion(),
|
||||||
@@ -177,7 +177,7 @@ public final class OriginBlacklist {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void updatePlugin(Runnable action1, Runnable action2) {
|
public final void updatePlugin(final Runnable action1, final Runnable action2) {
|
||||||
try {
|
try {
|
||||||
final URL url = new URL(this.updateURL);
|
final URL url = new URL(this.updateURL);
|
||||||
final Path jar = this.plugin.getPluginJarPath();
|
final Path jar = this.plugin.getPluginJarPath();
|
||||||
|
|||||||
@@ -149,9 +149,9 @@ public class OriginBlacklistCommand implements ICommand {
|
|||||||
ctx.reply("<aqua>Commands:</aqua>");
|
ctx.reply("<aqua>Commands:</aqua>");
|
||||||
ctx.reply("<gray> - /originblacklist reload</gray>");
|
ctx.reply("<gray> - /originblacklist reload</gray>");
|
||||||
ctx.reply("<gray> - /originblacklist update</gray>");
|
ctx.reply("<gray> - /originblacklist update</gray>");
|
||||||
ctx.reply("<gray> - /originblacklist add <origin/brand/name/ip> <argB></gray>");
|
ctx.reply("<gray> - /originblacklist add <origin/brand/name/ip> <arg></gray>");
|
||||||
ctx.reply("<gray> - /originblacklist remove <origin/brand/name/ip> <argB></gray>");
|
ctx.reply("<gray> - /originblacklist remove <origin/brand/name/ip> <arg></gray>");
|
||||||
ctx.reply("<gray> - /originblacklist test <argB></gray>");
|
ctx.reply("<gray> - /originblacklist test <arg></gray>");
|
||||||
ctx.reply("<gray> - /originblacklist list</gray>");
|
ctx.reply("<gray> - /originblacklist list</gray>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user