feat: 添加 load-player-info-filter 配置选项
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
@file:Suppress("VulnerableLibrariesLocal")
|
||||
|
||||
evaluationDependsOn(":ball-common")
|
||||
|
||||
dependencies {
|
||||
implementation(project(":ball-common")) {
|
||||
isTransitive = false
|
||||
}
|
||||
compileOnly("org.spigotmc:spigot-api:1.20.4-R0.1-SNAPSHOT")
|
||||
compileOnly("org.spigotmc:spigot-api:1.18.2-R0.1-SNAPSHOT")
|
||||
|
||||
compileOnly("cn.hamster3.mc.plugin:core-bukkit:1.2.2")
|
||||
compileOnly("me.clip:placeholderapi:2.11.5") {
|
||||
|
@@ -59,6 +59,7 @@ public class BallBukkitAPI extends BallAPI {
|
||||
config.getBoolean("debug", false),
|
||||
config.getString("channel-prefix", "") + ":",
|
||||
config.getBoolean("game-server-update-player-info", false),
|
||||
config.getStringList("load-player-info-filter"),
|
||||
serverInfo,
|
||||
datasource
|
||||
);
|
||||
|
@@ -14,6 +14,11 @@ channel-prefix: ""
|
||||
# 则可以启用该功能以防止 UUID 紊乱的问题
|
||||
game-server-update-player-info: false
|
||||
|
||||
# 该选项仅在 game-server-update-player-info 为 true 时有效
|
||||
# 服务器在启动时只会从数据库中加载 proxy_server 为下列的字符串的玩家信息
|
||||
load-player-info-filter:
|
||||
- "BungeeCord"
|
||||
|
||||
# 本服务器信息
|
||||
server-info:
|
||||
# 服务器唯一识别码,最长 32 字符
|
||||
|
Reference in New Issue
Block a user