mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +00:00
Add sponge module
This commit is contained in:
1 parent
12167674e9
commit
ace3a496ef
5 files changed
+40
-3
No files matched your search
@@ -0,0 +1,14 @@
|
||||
plugins {
|
||||
id 'org.spongepowered.plugin' version '0.9.0'
|
||||
}
|
||||
|
||||
description = "CarbonChat-Sponge"
|
||||
|
||||
dependencies {
|
||||
implementation project(":CarbonChat-API")
|
||||
compileOnly 'org.spongepowered:spongeapi:8.0.0-SNAPSHOT'
|
||||
annotationProcessor 'org.spongepowered:spongeapi:7.3.0'
|
||||
implementation "cloud.commandframework:cloud-sponge:${vers['cloud']}"
|
||||
}
|
||||
|
||||
sponge.plugin.id = 'CarbonChat-Sponge8'
|
||||
@@ -0,0 +1 @@
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.1-bin.zip
|
||||
@@ -0,0 +1,23 @@
|
||||
package net.draycia.carbon.sponge;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import net.draycia.carbon.api.CarbonChat;
|
||||
import org.slf4j.Logger;
|
||||
import org.spongepowered.api.event.game.state.GameStartedServerEvent;
|
||||
import org.spongepowered.api.event.Listener;
|
||||
import org.spongepowered.api.plugin.Plugin;
|
||||
|
||||
@Plugin(
|
||||
id = "carbonchat-sponge",
|
||||
name = "carbonchat"
|
||||
)
|
||||
public class CarbonChatSponge implements CarbonChat {
|
||||
|
||||
@Inject
|
||||
private Logger logger;
|
||||
|
||||
@Listener
|
||||
public void onServerStart(GameStartedServerEvent event) {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user