mirror of
https://github.com/colbster937/originblacklist.git
synced 2026-02-04 11:07:41 +00:00
relocate deps
This commit is contained in:
@@ -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