Initial commit
This commit is contained in:
42
hamster-ball-bungeecord/build.gradle
Normal file
42
hamster-ball-bungeecord/build.gradle
Normal file
@@ -0,0 +1,42 @@
|
||||
version = '1.0.0'
|
||||
setArchivesBaseName("HamsterBall-BungeeCord")
|
||||
|
||||
evaluationDependsOn(':hamster-ball-common')
|
||||
|
||||
dependencies {
|
||||
apiShade(project(":hamster-ball-common")) {
|
||||
exclude group: "*"
|
||||
}
|
||||
|
||||
compileOnly 'net.md-5:bungeecord-api:1.17-R0.1-SNAPSHOT'
|
||||
compileOnly "cn.hamster3.mc.plugin:hamster-core-bungeecord:1.0.0"
|
||||
}
|
||||
|
||||
processResources {
|
||||
inputs.property "version", project.version
|
||||
filesMatching("plugin.yml") {
|
||||
expand "version": project.version
|
||||
}
|
||||
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
|
||||
}
|
||||
|
||||
tasks.compileJava.dependsOn(":hamster-ball-common:build")
|
||||
tasks.create("shadowJar", Jar) {
|
||||
dependsOn("jar")
|
||||
from([
|
||||
tasks.jar.outputs.files.collect {
|
||||
it.isDirectory() ? it : zipTree(it)
|
||||
},
|
||||
configurations.shade.collect {
|
||||
it.isDirectory() ? it : zipTree(it)
|
||||
},
|
||||
configurations.apiShade.collect {
|
||||
it.isDirectory() ? it : zipTree(it)
|
||||
},
|
||||
configurations.implementationShade.collect {
|
||||
it.isDirectory() ? it : zipTree(it)
|
||||
}
|
||||
])
|
||||
destinationDir(rootProject.buildDir)
|
||||
}
|
||||
tasks.build.dependsOn(shadowJar)
|
@@ -0,0 +1,18 @@
|
||||
package cn.hamster3.mc.plugin.core.bungee;
|
||||
|
||||
import net.md_5.bungee.api.plugin.Plugin;
|
||||
|
||||
public class HamsterBallPlugin extends Plugin {
|
||||
@Override
|
||||
public void onLoad() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
super.onDisable();
|
||||
}
|
||||
}
|
9
hamster-ball-bungeecord/src/main/resources/bungee.yml
Normal file
9
hamster-ball-bungeecord/src/main/resources/bungee.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
name: HamsterBall
|
||||
main: cn.hamster3.mc.plugin.core.bungee.HamsterBallPlugin
|
||||
version: ${version}
|
||||
|
||||
author: MiniDay
|
||||
description: 仓鼠球:一个基于 Netty 的 Minecraft 服务端通用消息中间件(原HamsterService)
|
||||
|
||||
depend:
|
||||
- HamsterCore
|
10
hamster-ball-bungeecord/src/main/resources/config.yml
Normal file
10
hamster-ball-bungeecord/src/main/resources/config.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
ball-server:
|
||||
host: "ball.hamster3.cn"
|
||||
port: 58888
|
||||
nio-thread: 10
|
||||
|
||||
server-info:
|
||||
# 服务器唯一识别码,最长 32 字符
|
||||
id: "BungeeCord"
|
||||
# 服务端名称,用于展示给玩家看
|
||||
name: "代理端"
|
Reference in New Issue
Block a user