mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +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
|
// Configs
|
||||||
api(libs.configurateHocon)
|
api(libs.configurateHocon)
|
||||||
api(libs.configurateGuice)
|
|
||||||
api(libs.adventureSerializerConfigurate4) {
|
api(libs.adventureSerializerConfigurate4) {
|
||||||
isTransitive = false
|
isTransitive = false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,10 +116,6 @@ dependencies:
|
|||||||
group: org.spongepowered
|
group: org.spongepowered
|
||||||
name: configurate-core
|
name: configurate-core
|
||||||
version: { ref: configurate }
|
version: { ref: configurate }
|
||||||
configurateGuice:
|
|
||||||
group: org.spongepowered
|
|
||||||
name: configurate-extra-guice
|
|
||||||
version: { ref: configurate }
|
|
||||||
configurateHocon:
|
configurateHocon:
|
||||||
group: org.spongepowered
|
group: org.spongepowered
|
||||||
name: configurate-hocon
|
name: configurate-hocon
|
||||||
|
|||||||
@@ -89,10 +89,22 @@ public final class CarbonChatSponge implements CarbonChat {
|
|||||||
// Listeners
|
// Listeners
|
||||||
ListenerUtils.registerCommonListeners(this.injector);
|
ListenerUtils.registerCommonListeners(this.injector);
|
||||||
|
|
||||||
|
// Load channels
|
||||||
|
((CarbonChannelRegistry) this.channelRegistry()).loadChannels();
|
||||||
|
|
||||||
// Commands
|
// Commands
|
||||||
CloudUtils.registerCommands(this.injector);
|
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
|
@Listener
|
||||||
public void onInitialize(final StartingEngineEvent<Server> event) {
|
public void onInitialize(final StartingEngineEvent<Server> event) {
|
||||||
// Player data saving
|
// Player data saving
|
||||||
@@ -101,9 +113,6 @@ public final class CarbonChatSponge implements CarbonChat {
|
|||||||
.plugin(this.pluginContainer)
|
.plugin(this.pluginContainer)
|
||||||
.execute(() -> PlayerUtils.savePlayers(this.carbonServerSponge, this.userManager))
|
.execute(() -> PlayerUtils.savePlayers(this.carbonServerSponge, this.userManager))
|
||||||
.build());
|
.build());
|
||||||
|
|
||||||
// Load channels
|
|
||||||
((CarbonChannelRegistry) this.channelRegistry()).loadChannels();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Listener
|
@Listener
|
||||||
|
|||||||
Reference in new issue
Block a user