diff --git a/core/src/main/java/com/minekube/connect/watch/WatchAuthFailureMessage.java b/core/src/main/java/com/minekube/connect/watch/WatchAuthFailureMessage.java index 96ba58e8..b3f648e7 100644 --- a/core/src/main/java/com/minekube/connect/watch/WatchAuthFailureMessage.java +++ b/core/src/main/java/com/minekube/connect/watch/WatchAuthFailureMessage.java @@ -12,7 +12,7 @@ static String format(String responseBody) { if (message.startsWith(TOKEN_ENDPOINT_MISMATCH)) { return "WatchService rejected the endpoint token for this endpoint name. " + "Regenerate the token for this exact endpoint and organization in the Minekube dashboard, " - + "copy it into config.yml, then restart the server. " + + "replace the token in token.json or CONNECT_TOKEN, then restart the server. " + "If you do not own this endpoint name, choose a different endpoint name."; } if (message.startsWith(ENDPOINT_ORG_OWNED)) { diff --git a/core/src/test/java/com/minekube/connect/watch/WatchAuthFailureMessageTest.java b/core/src/test/java/com/minekube/connect/watch/WatchAuthFailureMessageTest.java index 1aa894c7..22baa38d 100644 --- a/core/src/test/java/com/minekube/connect/watch/WatchAuthFailureMessageTest.java +++ b/core/src/test/java/com/minekube/connect/watch/WatchAuthFailureMessageTest.java @@ -13,7 +13,7 @@ void explainsEndpointTokenMismatch() { assertEquals( "WatchService rejected the endpoint token for this endpoint name. " + "Regenerate the token for this exact endpoint and organization in the Minekube dashboard, " - + "copy it into config.yml, then restart the server. " + + "replace the token in token.json or CONNECT_TOKEN, then restart the server. " + "If you do not own this endpoint name, choose a different endpoint name.", message); }