From 967c2580f76f4f1aac8aac1d150b711e3e74de99 Mon Sep 17 00:00:00 2001 From: onebeastchris Date: Fri, 10 Jan 2025 21:23:46 +0100 Subject: [PATCH] adjust not listed message --- src/components/Provider.tsx | 12 ++++++++++-- src/types/providers.ts | 18 ------------------ 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/src/components/Provider.tsx b/src/components/Provider.tsx index 060b55d..d556df1 100644 --- a/src/components/Provider.tsx +++ b/src/components/Provider.tsx @@ -37,9 +37,17 @@ export const ProviderSelector = ({setProvider}) => { providers.unshift({ name: 'Not listed', - description: translate({ + url: null, + config: { + clone_remote_port: true + }, + connect_instructions: translate({ + id: 'providers.connect.templates.java_ip_port', + message: 'Connect with the Java server IP and Java server port.' + }), + info: translate({ id: 'providers.provider.not_listed.description', - message: "If your hosting provider is not listed, try enabling the `clone-remote-port` option in the config. Then, restart the server, and try connecting with the same IP and port as on Java Edition.
If this does not work, ask your server hosting provider for a UDP port, and use that. For VPS/KVM servers please follow the self-hosting steps." + message: "If this does not work, ask your server hosting provider for a UDP port, and use that. For VPS/KVM servers please follow the self-hosting steps." }) } as HostingProvider); diff --git a/src/types/providers.ts b/src/types/providers.ts index e6bedeb..cd3eeab 100644 --- a/src/types/providers.ts +++ b/src/types/providers.ts @@ -1,22 +1,4 @@ import React from "react"; -// TODO additional step vs description??? - -/* - * Setup guide: - * - * - search by name - * - * - if unsupported -> end - * - * - if custom_install_location: show that - * - if config present: show that - * - show connect instructions - * - * - if hosting article present: show that - * - if hosting support present: show that - * - * - show blue info banner - */ export type HostingProvider = { name: string;