mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +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
|
TimeUnit.SECONDS
|
||||||
);
|
);
|
||||||
|
|
||||||
|
this.initIntegrations();
|
||||||
|
|
||||||
// Load channels
|
// Load channels
|
||||||
this.channelRegistry().loadConfigChannels(this.carbonMessages);
|
this.channelRegistry().loadConfigChannels(this.carbonMessages);
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ public final class CarbonChatFabric extends CarbonChatInternal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void registerServerLifecycleListeners() {
|
private void registerServerLifecycleListeners() {
|
||||||
ServerLifecycleEvents.SERVER_STARTING.register(server -> this.initIntegrations());
|
|
||||||
ServerLifecycleEvents.SERVER_STARTED.register(server -> this.checkVersion());
|
ServerLifecycleEvents.SERVER_STARTED.register(server -> this.checkVersion());
|
||||||
ServerLifecycleEvents.SERVER_STOPPED.register(server -> this.shutdown());
|
ServerLifecycleEvents.SERVER_STOPPED.register(server -> this.shutdown());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,7 +95,6 @@ public final class CarbonChatPaper extends CarbonChatInternal {
|
|||||||
|
|
||||||
void onEnable() {
|
void onEnable() {
|
||||||
this.init();
|
this.init();
|
||||||
this.initIntegrations();
|
|
||||||
|
|
||||||
final Set<Listener> listeners = this.injector().getInstance(Key.get(new TypeLiteral<Set<Listener>>() {}));
|
final Set<Listener> listeners = this.injector().getInstance(Key.get(new TypeLiteral<Set<Listener>>() {}));
|
||||||
for (final Listener listener : listeners) {
|
for (final Listener listener : listeners) {
|
||||||
|
|||||||
@@ -88,7 +88,6 @@ public class CarbonChatVelocity extends CarbonChatInternal {
|
|||||||
|
|
||||||
public void onInitialization(final CarbonVelocityBootstrap carbonVelocityBootstrap) {
|
public void onInitialization(final CarbonVelocityBootstrap carbonVelocityBootstrap) {
|
||||||
this.init();
|
this.init();
|
||||||
this.initIntegrations();
|
|
||||||
|
|
||||||
final Set<VelocityListener<?>> listeners = this.injector().getInstance(Key.get(new TypeLiteral<Set<VelocityListener<?>>>() {}));
|
final Set<VelocityListener<?>> listeners = this.injector().getInstance(Key.get(new TypeLiteral<Set<VelocityListener<?>>>() {}));
|
||||||
for (final VelocityListener<?> listener : listeners) {
|
for (final VelocityListener<?> listener : listeners) {
|
||||||
|
|||||||
Reference in new issue
Block a user