mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-12-31 18:07:56 +01:00
Make Module#enable call Module#reload by default
This commit is contained in:
parent
bdc767ce47
commit
f5acc00f8a
@ -42,11 +42,6 @@ public class ChannelUpdaterModule extends AbstractModule<DiscordSRV> {
|
|||||||
super(discordSRV);
|
super(discordSRV);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void enable() {
|
|
||||||
reload();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void reload() {
|
public void reload() {
|
||||||
futures.forEach(future -> future.cancel(false));
|
futures.forEach(future -> future.cancel(false));
|
||||||
|
@ -34,7 +34,10 @@ public interface Module {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
default void enable() {}
|
default void enable() {
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
default void disable() {}
|
default void disable() {}
|
||||||
default void reload() {}
|
default void reload() {}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user