Commit 6d65b715 authored by AnimeGitB's avatar AnimeGitB
Browse files

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.
parent f5c89596
...@@ -253,7 +253,7 @@ public final class GameServer extends KcpServer { ...@@ -253,7 +253,7 @@ public final class GameServer extends KcpServer {
} }
}, new Date(), 1000L); }, new Date(), 1000L);
Grasscutter.getLogger().info(translate("messages.status.free_software")); 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()); ServerStartEvent event = new ServerStartEvent(ServerEvent.Type.GAME, OffsetDateTime.now());
event.call(); event.call();
} }
......
...@@ -137,7 +137,7 @@ public final class HttpServer { ...@@ -137,7 +137,7 @@ public final class HttpServer {
} }
// Log bind information. // 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()));
} }
/** /**
......
{ {
"messages": { "messages": {
"game": { "game": {
"address_bind": "Game Server started at \u001B[1m\u001B[33m%s:%s\u001B[0m",
"port_bind": "Game Server started on port %s", "port_bind": "Game Server started on port %s",
"connect": "Client connected from %s", "connect": "Client connected from %s",
"disconnect": "Client disconnected from %s", "disconnect": "Client disconnected from %s",
...@@ -8,6 +9,7 @@ ...@@ -8,6 +9,7 @@
"command_error": "Command error:" "command_error": "Command error:"
}, },
"dispatch": { "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", "port_bind": "[Dispatch] Dispatch server started on port %s",
"request": "[Dispatch] Client %s %s request: %s", "request": "[Dispatch] Client %s %s request: %s",
"keystore": { "keystore": {
......
{ {
"messages": { "messages": {
"game": { "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", "port_bind": "Servidor del juego iniciado en el puerto %s",
"connect": "Cliente conectado desde %s", "connect": "Cliente conectado desde %s",
"disconnect": "Cliente desconectado desde %s", "disconnect": "Cliente desconectado desde %s",
...@@ -8,6 +9,7 @@ ...@@ -8,6 +9,7 @@
"command_error": "Comando de error:" "command_error": "Comando de error:"
}, },
"dispatch": { "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", "port_bind": "[Dispatch] El servidor de envío se inició en el puerto %s",
"request": "[Dispatch] Petición %s %s del cliente: %s", "request": "[Dispatch] Petición %s %s del cliente: %s",
"keystore": { "keystore": {
......
{ {
"messages": { "messages": {
"game": { "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", "port_bind": "Serveur de jeu démarré sur le port %s",
"connect": "Client connecté depuis %s", "connect": "Client connecté depuis %s",
"disconnect": "Client déconnecté depuis %s", "disconnect": "Client déconnecté depuis %s",
...@@ -8,6 +9,7 @@ ...@@ -8,6 +9,7 @@
"command_error": "Erreur de commande:" "command_error": "Erreur de commande:"
}, },
"dispatch": { "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", "port_bind": "[Dispatch] Serveur de répartition démarré sur le port %s",
"request": "[Dispatch] Le client %s %s demande : %s", "request": "[Dispatch] Le client %s %s demande : %s",
"keystore": { "keystore": {
......
{ {
"messages": { "messages": {
"game": { "game": {
"address_bind": "🇺🇸Game Server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
"port_bind": "게임 서버가 포트 %s에서 열렸습니다.", "port_bind": "게임 서버가 포트 %s에서 열렸습니다.",
"connect": "클라이언트가 %s에서 연결됐습니다.", "connect": "클라이언트가 %s에서 연결됐습니다.",
"disconnect": "클라이언트가 %s에서 연결이 끊겼습니다.", "disconnect": "클라이언트가 %s에서 연결이 끊겼습니다.",
...@@ -8,6 +9,7 @@ ...@@ -8,6 +9,7 @@
"command_error": "명령어 오류:" "command_error": "명령어 오류:"
}, },
"dispatch": { "dispatch": {
"address_bind": "🇺🇸[Dispatch] Dispatch server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
"port_bind": "[Dispatch] 디스패치 서버가 포트 %s에서 열렸습니다.", "port_bind": "[Dispatch] 디스패치 서버가 포트 %s에서 열렸습니다.",
"request": "🇺🇸[Dispatch] Client %s %s request: %s", "request": "🇺🇸[Dispatch] Client %s %s request: %s",
"keystore": { "keystore": {
......
{ {
"messages": { "messages": {
"game": { "game": {
"address_bind": "🇺🇸Game Server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
"port_bind": "Serwer gry został uruchomiony na porcie %s.", "port_bind": "Serwer gry został uruchomiony na porcie %s.",
"connect": "Klient połączył się z %s.", "connect": "Klient połączył się z %s.",
"disconnect": "Klient rozłączył się z %s.", "disconnect": "Klient rozłączył się z %s.",
...@@ -8,6 +9,7 @@ ...@@ -8,6 +9,7 @@
"command_error": "Błąd komendy: " "command_error": "Błąd komendy: "
}, },
"dispatch": { "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.", "port_bind": "[Dispatch] Serwer Dispatch został uruchomiony na porcie %s.",
"request": "[Dispatch] Żądanie klienta %s (metoda %s): %s", "request": "[Dispatch] Żądanie klienta %s (metoda %s): %s",
"keystore": { "keystore": {
......
{ {
"messages": { "messages": {
"game": { "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", "port_bind": "Serverul de joc a început pe port %s",
"connect": "Client conectat de la %s", "connect": "Client conectat de la %s",
"disconnect": "Client deconectat de la %s", "disconnect": "Client deconectat de la %s",
...@@ -8,6 +9,7 @@ ...@@ -8,6 +9,7 @@
"command_error": "Eroare de comandă:" "command_error": "Eroare de comandă:"
}, },
"dispatch": { "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", "port_bind": "[Dispatch] Server de dispecerat pornit pe portul %s",
"request": "[Dispatch] Clientul %s %s cere: %s", "request": "[Dispatch] Clientul %s %s cere: %s",
"keystore": { "keystore": {
......
{ {
"messages": { "messages": {
"game": { "game": {
"address_bind": "🇺🇸Game Server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
"port_bind": "Игровой сервер запущен на порте %s", "port_bind": "Игровой сервер запущен на порте %s",
"connect": "Клиент подключился с %s", "connect": "Клиент подключился с %s",
"disconnect": "Клиент отсоединился с %s", "disconnect": "Клиент отсоединился с %s",
...@@ -8,6 +9,7 @@ ...@@ -8,6 +9,7 @@
"command_error": "Командная ошибка:" "command_error": "Командная ошибка:"
}, },
"dispatch": { "dispatch": {
"address_bind": "🇺🇸[Dispatch] Dispatch server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
"port_bind": "[Dispatch] Распределительный сервер запущен на порте %s", "port_bind": "[Dispatch] Распределительный сервер запущен на порте %s",
"request": "[Dispatch] Клиент %s %s, запрос: %s", "request": "[Dispatch] Клиент %s %s, запрос: %s",
"keystore": { "keystore": {
......
{ {
"messages": { "messages": {
"game": { "game": {
"address_bind": "🇺🇸Game Server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
"port_bind": "游戏服务器已在端口 %s 上启动。", "port_bind": "游戏服务器已在端口 %s 上启动。",
"connect": "客户端 %s 已连接。", "connect": "客户端 %s 已连接。",
"disconnect": "客户端 %s 已断开连接。", "disconnect": "客户端 %s 已断开连接。",
...@@ -8,6 +9,7 @@ ...@@ -8,6 +9,7 @@
"command_error": "命令发生错误:" "command_error": "命令发生错误:"
}, },
"dispatch": { "dispatch": {
"address_bind": "🇺🇸[Dispatch] Dispatch server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
"port_bind": "[Dispatch] 服务器已在端口 %s 上启动", "port_bind": "[Dispatch] 服务器已在端口 %s 上启动",
"request": "[Dispatch] 客户端 %s 请求:%s %s", "request": "[Dispatch] 客户端 %s 请求:%s %s",
"keystore": { "keystore": {
......
{ {
"messages": { "messages": {
"game": { "game": {
"address_bind": "🇺🇸Game Server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
"port_bind": "遊戲伺服器已成功啟動。端口號:%s", "port_bind": "遊戲伺服器已成功啟動。端口號:%s",
"connect": "客戶端已連接至 %s", "connect": "客戶端已連接至 %s",
"disconnect": "客戶端 %s 已斷開連接。", "disconnect": "客戶端 %s 已斷開連接。",
...@@ -8,6 +9,7 @@ ...@@ -8,6 +9,7 @@
"command_error": "指令發生錯誤:" "command_error": "指令發生錯誤:"
}, },
"dispatch": { "dispatch": {
"address_bind": "🇺🇸[Dispatch] Dispatch server started at \u001b[1m\u001b[33m%s:%s\u001b[0m",
"port_bind": "[Dispatch] 伺服器已在端口 %s 上開啟。", "port_bind": "[Dispatch] 伺服器已在端口 %s 上開啟。",
"request": "[Dispatch] 客戶端 %s 請求: %s %s", "request": "[Dispatch] 客戶端 %s 請求: %s %s",
"keystore": { "keystore": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment