mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 14:38:49 +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
@@ -8,7 +8,7 @@ plugins {
|
|||||||
description = 'CarbonChat-Bukkit'
|
description = 'CarbonChat-Bukkit'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(":CarbonChat-Common")
|
implementation project(":CarbonChat-API")
|
||||||
|
|
||||||
// Server
|
// Server
|
||||||
compileOnly "com.destroystokyo.paper:paper-api:${vers['paper-api']}"
|
compileOnly "com.destroystokyo.paper:paper-api:${vers['paper-api']}"
|
||||||
@@ -19,7 +19,6 @@ dependencies {
|
|||||||
|
|
||||||
// Config
|
// Config
|
||||||
implementation "org.spongepowered:configurate-yaml:${vers['configurate']}"
|
implementation "org.spongepowered:configurate-yaml:${vers['configurate']}"
|
||||||
implementation "org.spongepowered:configurate-hocon:${vers['configurate']}"
|
|
||||||
implementation "org.yaml:snakeyaml:${vers['snakeyaml']}"
|
implementation "org.yaml:snakeyaml:${vers['snakeyaml']}"
|
||||||
|
|
||||||
// Commands
|
// Commands
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
include("CarbonChat-API")
|
include("CarbonChat-API")
|
||||||
include("CarbonChat-Bukkit")
|
include("CarbonChat-Bukkit")
|
||||||
|
include("CarbonChat-Sponge")
|
||||||
Reference in new issue
Block a user