mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
confirmed working sponge module
This commit is contained in:
3 files changed
+12
-8
No files matched your search
@@ -89,10 +89,22 @@ public final class CarbonChatSponge implements CarbonChat {
|
||||
// Listeners
|
||||
ListenerUtils.registerCommonListeners(this.injector);
|
||||
|
||||
// Load channels
|
||||
((CarbonChannelRegistry) this.channelRegistry()).loadChannels();
|
||||
|
||||
// Commands
|
||||
CloudUtils.registerCommands(this.injector);
|
||||
}
|
||||
|
||||
// @Listener
|
||||
// public void onRegisterCommandEvent(final RegisterCommandEvent<Command.Raw> event) {
|
||||
// // Load channels
|
||||
// ((CarbonChannelRegistry) this.channelRegistry()).loadChannels();
|
||||
//
|
||||
// // Commands
|
||||
// CloudUtils.registerCommands(this.injector);
|
||||
// }
|
||||
|
||||
@Listener
|
||||
public void onInitialize(final StartingEngineEvent<Server> event) {
|
||||
// Player data saving
|
||||
@@ -101,9 +113,6 @@ public final class CarbonChatSponge implements CarbonChat {
|
||||
.plugin(this.pluginContainer)
|
||||
.execute(() -> PlayerUtils.savePlayers(this.carbonServerSponge, this.userManager))
|
||||
.build());
|
||||
|
||||
// Load channels
|
||||
((CarbonChannelRegistry) this.channelRegistry()).loadChannels();
|
||||
}
|
||||
|
||||
@Listener
|
||||
|
||||
Reference in new issue
Block a user