mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
Revert extension load order change
This commit is contained in:
4 files changed
+2
-3
No files matched your search
@@ -123,6 +123,8 @@ public abstract class CarbonChatInternal implements CarbonChat {
|
||||
TimeUnit.SECONDS
|
||||
);
|
||||
|
||||
this.initIntegrations();
|
||||
|
||||
// Load channels
|
||||
this.channelRegistry().loadConfigChannels(this.carbonMessages);
|
||||
|
||||
|
||||
@@ -115,7 +115,6 @@ public final class CarbonChatFabric extends CarbonChatInternal {
|
||||
}
|
||||
|
||||
private void registerServerLifecycleListeners() {
|
||||
ServerLifecycleEvents.SERVER_STARTING.register(server -> this.initIntegrations());
|
||||
ServerLifecycleEvents.SERVER_STARTED.register(server -> this.checkVersion());
|
||||
ServerLifecycleEvents.SERVER_STOPPED.register(server -> this.shutdown());
|
||||
}
|
||||
|
||||
@@ -95,7 +95,6 @@ public final class CarbonChatPaper extends CarbonChatInternal {
|
||||
|
||||
void onEnable() {
|
||||
this.init();
|
||||
this.initIntegrations();
|
||||
|
||||
final Set<Listener> listeners = this.injector().getInstance(Key.get(new TypeLiteral<Set<Listener>>() {}));
|
||||
for (final Listener listener : listeners) {
|
||||
|
||||
@@ -88,7 +88,6 @@ public class CarbonChatVelocity extends CarbonChatInternal {
|
||||
|
||||
public void onInitialization(final CarbonVelocityBootstrap carbonVelocityBootstrap) {
|
||||
this.init();
|
||||
this.initIntegrations();
|
||||
|
||||
final Set<VelocityListener<?>> listeners = this.injector().getInstance(Key.get(new TypeLiteral<Set<VelocityListener<?>>>() {}));
|
||||
for (final VelocityListener<?> listener : listeners) {
|
||||
|
||||
Reference in new issue
Block a user