mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
confirmed working sponge module
This commit is contained in:
3 files changed
+12
-8
No files matched your search
@@ -7,7 +7,6 @@ dependencies {
|
||||
|
||||
// Configs
|
||||
api(libs.configurateHocon)
|
||||
api(libs.configurateGuice)
|
||||
api(libs.adventureSerializerConfigurate4) {
|
||||
isTransitive = false
|
||||
}
|
||||
|
||||
@@ -116,10 +116,6 @@ dependencies:
|
||||
group: org.spongepowered
|
||||
name: configurate-core
|
||||
version: { ref: configurate }
|
||||
configurateGuice:
|
||||
group: org.spongepowered
|
||||
name: configurate-extra-guice
|
||||
version: { ref: configurate }
|
||||
configurateHocon:
|
||||
group: org.spongepowered
|
||||
name: configurate-hocon
|
||||
|
||||
@@ -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