mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 07:37:43 +00:00
Show accessAddress in bold yellow on startup
This should make it easier to help people troubleshoot networked setups. Consider telling people to try connecting to the address with a web browser on the client's machine.
This commit is contained in:
parent
f5c8959688
commit
6d65b71512
@ -253,7 +253,7 @@ public final class GameServer extends KcpServer {
|
||||
}
|
||||
}, new Date(), 1000L);
|
||||
Grasscutter.getLogger().info(translate("messages.status.free_software"));
|
||||
Grasscutter.getLogger().info(translate("messages.game.port_bind", Integer.toString(address.getPort())));
|
||||
Grasscutter.getLogger().info(translate("messages.game.address_bind", GAME_INFO.accessAddress, address.getPort()));
|
||||
ServerStartEvent event = new ServerStartEvent(ServerEvent.Type.GAME, OffsetDateTime.now());
|
||||
event.call();
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ public final class HttpServer {
|
||||
}
|
||||
|
||||
// Log bind information.
|
||||
Grasscutter.getLogger().info(translate("messages.dispatch.port_bind", Integer.toString(this.express.raw().port())));
|
||||
Grasscutter.getLogger().info(translate("messages.dispatch.address_bind", HTTP_INFO.accessAddress, this.express.raw().port()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"messages": {
|
||||
"game": {
|
||||
"address_bind": "Game Server started at \u001B[1m\u001B[33m%s:%s\u001B[0m",
|
||||
"port_bind": "Game Server started on port %s",
|
||||
"connect": "Client connected from %s",
|
||||
"disconnect": "Client disconnected from %s",
|
||||
@ -8,6 +9,7 @@
|
||||
"command_error": "Command error:"
|
||||
},
|
||||
"dispatch": {
|
||||
"address_bind": "[Dispatch] Dispatch server started at \u001B[1m\u001B[33m%s:%s\u001B[0m",
|
||||
"port_bind": "[Dispatch] Dispatch server started on port %s",
|
||||
"request": "[Dispatch] Client %s %s request: %s",
|
||||
"keystore": {
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"messages": {
|
||||
"game": {
|
||||
"address_bind": "🇺🇸Game Server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "Servidor del juego iniciado en el puerto %s",
|
||||
"connect": "Cliente conectado desde %s",
|
||||
"disconnect": "Cliente desconectado desde %s",
|
||||
@ -8,6 +9,7 @@
|
||||
"command_error": "Comando de error:"
|
||||
},
|
||||
"dispatch": {
|
||||
"address_bind": "🇺🇸[Dispatch] Dispatch server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "[Dispatch] El servidor de envío se inició en el puerto %s",
|
||||
"request": "[Dispatch] Petición %s %s del cliente: %s",
|
||||
"keystore": {
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"messages": {
|
||||
"game": {
|
||||
"address_bind": "🇺🇸Game Server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "Serveur de jeu démarré sur le port %s",
|
||||
"connect": "Client connecté depuis %s",
|
||||
"disconnect": "Client déconnecté depuis %s",
|
||||
@ -8,6 +9,7 @@
|
||||
"command_error": "Erreur de commande:"
|
||||
},
|
||||
"dispatch": {
|
||||
"address_bind": "🇺🇸[Dispatch] Dispatch server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "[Dispatch] Serveur de répartition démarré sur le port %s",
|
||||
"request": "[Dispatch] Le client %s %s demande : %s",
|
||||
"keystore": {
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"messages": {
|
||||
"game": {
|
||||
"address_bind": "🇺🇸Game Server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "게임 서버가 포트 %s에서 열렸습니다.",
|
||||
"connect": "클라이언트가 %s에서 연결됐습니다.",
|
||||
"disconnect": "클라이언트가 %s에서 연결이 끊겼습니다.",
|
||||
@ -8,6 +9,7 @@
|
||||
"command_error": "명령어 오류:"
|
||||
},
|
||||
"dispatch": {
|
||||
"address_bind": "🇺🇸[Dispatch] Dispatch server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "[Dispatch] 디스패치 서버가 포트 %s에서 열렸습니다.",
|
||||
"request": "🇺🇸[Dispatch] Client %s %s request: %s",
|
||||
"keystore": {
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"messages": {
|
||||
"game": {
|
||||
"address_bind": "🇺🇸Game Server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "Serwer gry został uruchomiony na porcie %s.",
|
||||
"connect": "Klient połączył się z %s.",
|
||||
"disconnect": "Klient rozłączył się z %s.",
|
||||
@ -8,6 +9,7 @@
|
||||
"command_error": "Błąd komendy: "
|
||||
},
|
||||
"dispatch": {
|
||||
"address_bind": "🇺🇸[Dispatch] Dispatch server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "[Dispatch] Serwer Dispatch został uruchomiony na porcie %s.",
|
||||
"request": "[Dispatch] Żądanie klienta %s (metoda %s): %s",
|
||||
"keystore": {
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"messages": {
|
||||
"game": {
|
||||
"address_bind": "🇺🇸Game Server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "Serverul de joc a început pe port %s",
|
||||
"connect": "Client conectat de la %s",
|
||||
"disconnect": "Client deconectat de la %s",
|
||||
@ -8,6 +9,7 @@
|
||||
"command_error": "Eroare de comandă:"
|
||||
},
|
||||
"dispatch": {
|
||||
"address_bind": "🇺🇸[Dispatch] Dispatch server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "[Dispatch] Server de dispecerat pornit pe portul %s",
|
||||
"request": "[Dispatch] Clientul %s %s cere: %s",
|
||||
"keystore": {
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"messages": {
|
||||
"game": {
|
||||
"address_bind": "🇺🇸Game Server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "Игровой сервер запущен на порте %s",
|
||||
"connect": "Клиент подключился с %s",
|
||||
"disconnect": "Клиент отсоединился с %s",
|
||||
@ -8,6 +9,7 @@
|
||||
"command_error": "Командная ошибка:"
|
||||
},
|
||||
"dispatch": {
|
||||
"address_bind": "🇺🇸[Dispatch] Dispatch server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "[Dispatch] Распределительный сервер запущен на порте %s",
|
||||
"request": "[Dispatch] Клиент %s %s, запрос: %s",
|
||||
"keystore": {
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"messages": {
|
||||
"game": {
|
||||
"address_bind": "🇺🇸Game Server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "游戏服务器已在端口 %s 上启动。",
|
||||
"connect": "客户端 %s 已连接。",
|
||||
"disconnect": "客户端 %s 已断开连接。",
|
||||
@ -8,6 +9,7 @@
|
||||
"command_error": "命令发生错误:"
|
||||
},
|
||||
"dispatch": {
|
||||
"address_bind": "🇺🇸[Dispatch] Dispatch server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "[Dispatch] 服务器已在端口 %s 上启动",
|
||||
"request": "[Dispatch] 客户端 %s 请求:%s %s",
|
||||
"keystore": {
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"messages": {
|
||||
"game": {
|
||||
"address_bind": "🇺🇸Game Server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "遊戲伺服器已成功啟動。端口號:%s",
|
||||
"connect": "客戶端已連接至 %s",
|
||||
"disconnect": "客戶端 %s 已斷開連接。",
|
||||
@ -8,6 +9,7 @@
|
||||
"command_error": "指令發生錯誤:"
|
||||
},
|
||||
"dispatch": {
|
||||
"address_bind": "🇺🇸[Dispatch] Dispatch server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "[Dispatch] 伺服器已在端口 %s 上開啟。",
|
||||
"request": "[Dispatch] 客戶端 %s 請求: %s %s",
|
||||
"keystore": {
|
||||
|
Loading…
Reference in New Issue
Block a user