mirror of
https://github.com/colbster937/originblacklist.git
synced 2026-02-04 19:17:40 +00:00
Compare commits
1 Commits
50fdbb0c28
...
v2.0.5+14f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
14ffd4eb08 |
@@ -148,8 +148,9 @@ tasks.withType<ShadowJar>().configureEach {
|
||||
delete(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("org.bstats", "$PLUGIN_DOMN.$PLUGIN_IDEN.shaded.bstats")
|
||||
relocate("org.semver4j.semver4j", "$PLUGIN_DOMN.$PLUGIN_IDEN.shaded.semver4j")
|
||||
// relocate("net.kyori.adventure", "$PLUGIN_DOMN.$PLUGIN_IDEN.shaded.adventure")
|
||||
archiveFileName.set("$PLUGIN_NAME-$PLUGIN_VERS.jar")
|
||||
|
||||
@@ -161,7 +161,7 @@ public final class OriginBlacklist {
|
||||
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")) {
|
||||
this.plugin.runAsync(() -> {
|
||||
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 {
|
||||
final URL url = new URL(this.updateURL);
|
||||
final Path jar = this.plugin.getPluginJarPath();
|
||||
|
||||
@@ -149,9 +149,9 @@ public class OriginBlacklistCommand implements ICommand {
|
||||
ctx.reply("<aqua>Commands:</aqua>");
|
||||
ctx.reply("<gray> - /originblacklist reload</gray>");
|
||||
ctx.reply("<gray> - /originblacklist update</gray>");
|
||||
ctx.reply("<gray> - /originblacklist add <origin/brand/name/ip> <argB></gray>");
|
||||
ctx.reply("<gray> - /originblacklist remove <origin/brand/name/ip> <argB></gray>");
|
||||
ctx.reply("<gray> - /originblacklist test <argB></gray>");
|
||||
ctx.reply("<gray> - /originblacklist add <origin/brand/name/ip> <arg></gray>");
|
||||
ctx.reply("<gray> - /originblacklist remove <origin/brand/name/ip> <arg></gray>");
|
||||
ctx.reply("<gray> - /originblacklist test <arg></gray>");
|
||||
ctx.reply("<gray> - /originblacklist list</gray>");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user