4drian3d / 4drian3d/VLobby

Allow for combination of both handlers

未关闭
#64 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement help wanted
主要语言
Kotlin
星标
18
派生
3
平均合并
3 天 20 小时
30 天内合并 PR
2

描述

Currently, there is two available handlers: the COMMAND_TO_SERVER handler, and the REGULAR handler. The problem is that, when using the REGULAR handler, you loose the ability to load balance servers. It would be nice to have a combination between the two, where you would do something like:
```hcl
many-to-many-handler {
command {
# Commands that can be used
commands=[
lobby,
hub
]
# List of servers
servers=[
lobby,
lobby1,
hub
]
# Send Mode Formula
# RANDOM: It will send the player to a random server among the configured ones
# FIRST_AVAILABLE: It will send the player to the first available server
# EMPTIEST: Send the player to the server with the least amount of players
send-mode=RANDOM
}

command {
# Commands that can be used
commands=[
bedwars,
bw
]
# List of servers
servers=[
bedwars1,
bedwars2
]
# Send Mode Formula
# RANDOM: It will send the player to a random server among the configured ones
# FIRST_AVAILABLE: It will send the player to the first available server
# EMPTIEST: Send the player to the server with the least amount of players
send-mode=EMPTIEST
}
}
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

Look at the existing handlers in the codebase, likely in a handlers package. Understand how COMMAND_TO_SERVER and REGULAR handlers are implemented. The feature requires combining their logic to support command-based load balancing. Check for configuration parsing and server routing logic. Test by building the plugin and verifying the new HCL configuration works with Velocity.

由索引模型根据 Issue 内容生成。

评估

技术栈
kotlin
领域
backend
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。