mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 17:05:20 +01:00
Set the maximum number of player on the server through the config.json (#1001)
* Show server status to three-party game launcher * Set the maximum number of player on the server through the config.json * modify the logical order and show the number of maxplayer to API /status/server * Now even players who have token already cannot bypass the maxPlayer check
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
"account": {
|
||||
"login_attempt": "[Dispatch] Client %s is trying to log in.",
|
||||
"login_success": "[Dispatch] Client %s logged in as %s.",
|
||||
"login_max_player_limit": "[Dispatch] Client %s failed to log in: The number of online players has reached the limit",
|
||||
"login_token_attempt": "[Dispatch] Client %s is trying to log in via token.",
|
||||
"login_token_error": "[Dispatch] Client %s failed to log in via token.",
|
||||
"login_token_success": "[Dispatch] Client %s logged in via token as %s.",
|
||||
@@ -35,7 +36,8 @@
|
||||
"account_cache_error": "Game account cache information error.",
|
||||
"session_key_error": "Wrong session key.",
|
||||
"username_error": "Username not found.",
|
||||
"username_create_error": "Username not found, create failed."
|
||||
"username_create_error": "Username not found, create failed.",
|
||||
"server_max_player_limit": "The number of online players has reached the limit"
|
||||
},
|
||||
"router_error": "[Dispatch] Unable to attach router."
|
||||
},
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
"account": {
|
||||
"login_attempt": "[Dispatch] Klient %s próbuje się zalogować",
|
||||
"login_success": "[Dispatch] Klient %s zalogował się jako %s",
|
||||
"login_max_player_limit": "[Dispatch] Klient %s nie powiodło się: Liczba graczy online osiągnęła limit",
|
||||
"login_token_attempt": "[Dispatch] Klient %s próbuje się zalogować poprzez token",
|
||||
"login_token_error": "[Dispatch] Klient %s nie mógł się zalogować poprzez token",
|
||||
"login_token_success": "[Dispatch] Klient %s zalogował się poprzez token jako %s",
|
||||
@@ -32,7 +33,8 @@
|
||||
"account_cache_error": "Błąd pamięci cache konta gry",
|
||||
"session_key_error": "Błędny klucz sesji.",
|
||||
"username_error": "Nazwa użytkownika nie znaleziona.",
|
||||
"username_create_error": "Nazwa użytkownika nie znaleziona, tworzenie nie powiodło się."
|
||||
"username_create_error": "Nazwa użytkownika nie znaleziona, tworzenie nie powiodło się.",
|
||||
"server_max_player_limit": "Liczba graczy online osiągnęła limit"
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
"account": {
|
||||
"login_attempt": "[Dispatch] 客户端 %s 正在尝试登录",
|
||||
"login_success": "[Dispatch] 客户端 %s 已登录,UID 为 %s",
|
||||
"login_max_player_limit": "[Dispatch] 客户端 %s 登录失败:在线人数已满",
|
||||
"login_token_attempt": "[Dispatch] 客户端 %s 正在尝试使用 token 登录",
|
||||
"login_token_error": "[Dispatch] 客户端 %s 使用 token 登录失败",
|
||||
"login_token_success": "[Dispatch] 客户端 %s 已通过 token 登录,UID 为 %s",
|
||||
@@ -35,7 +36,8 @@
|
||||
"account_cache_error": "游戏账号缓存信息错误",
|
||||
"session_key_error": "会话密钥错误",
|
||||
"username_error": "未找到此用户名",
|
||||
"username_create_error": "未找到用户名,建立连接失败"
|
||||
"username_create_error": "未找到用户名,建立连接失败",
|
||||
"server_max_player_limit": "服务器在线人数已满"
|
||||
},
|
||||
"router_error": "[Dispatch] 无法连接路由"
|
||||
},
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
"account": {
|
||||
"login_attempt": "[Dispatch] 客戶端 %s 正在嘗試登入",
|
||||
"login_success": "[Dispatch] 客戶端 %s 已登入,UID為 %s",
|
||||
"login_max_player_limit": "[Dispatch] 客戶端 %s 登入失敗:在綫人數已滿",
|
||||
"login_token_attempt": "[Dispatch] 客戶端 %s 正在嘗試用憑證登入",
|
||||
"login_token_error": "[Dispatch] 客戶端 %s 使用憑證登入失敗",
|
||||
"login_token_success": "[Dispatch] 客戶端 %s 已透過憑證登入,UID為 %s",
|
||||
@@ -35,7 +36,8 @@
|
||||
"account_cache_error": "遊戲帳號緩存資訊錯誤",
|
||||
"session_key_error": "對話密鑰不符。",
|
||||
"username_error": "未找到此用戶名。",
|
||||
"username_create_error": "未找到用戶名,建立失敗。"
|
||||
"username_create_error": "未找到用戶名,建立失敗。",
|
||||
"server_max_player_limit": "服務器在綫人數已滿"
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
|
||||
Reference in New Issue
Block a user