fix: server id display on connect to offline server

This commit is contained in:
Andrey Terentev 2026-01-04 16:42:41 +07:00
parent 5af7848bda
commit 308406e419

View File

@ -79,7 +79,7 @@ public class KubikPlugin implements ProxyServerRegistry {
var server = registeredServers.get(serverId);
if (server == null) {
logger.error("Could not find server with id '{}'", serverId);
player.disconnect(Component.text("Сервер '{}' недоступен", NamedTextColor.RED));
player.disconnect(Component.text("Сервер '%s' недоступен".formatted(serverId), NamedTextColor.RED));
return;
}