diff --git a/src/main/java/com/the5gi/DeepJ/Translator.java b/src/main/java/com/the5gi/DeepJ/Translator.java index baf6dca..fd3625f 100644 --- a/src/main/java/com/the5gi/DeepJ/Translator.java +++ b/src/main/java/com/the5gi/DeepJ/Translator.java @@ -20,7 +20,7 @@ public class Translator { //CONSTRUCTORS public Translator() { - if (globalAuthKey == null) { + if (globalAPIKey == null) { System.out.println("\n[DeepJ] You are currently using the Global API Key Translator Constructor." +"\n[DeepJ] If you are trying to use global API keys, Call the method \"Translator.setGlobalAuthKey(String key)\" and then re-use this contructor." + "\n[DeepJ] If you want to define an different authkey every time do: \"new Translator(String authKey)\"\n"); } else { request = new Request(globalAPIKey); @@ -45,7 +45,7 @@ public class Translator { return new Translator(apiKey); } public static Translator newTranslator() { - if (globalAuthKey == null) { + if (globalAPIKey == null) { System.out.println("\n[DeepJ] You are currently using the Global API Key \".of()\" Translator." + "\n[DeepJ] If you are trying to use global API keys, Call the method \"Translator.setGlobalAPIKey(String key)\" and then re-use this method." + "\n[DeepJ] If you want to define an different authkey every time do: \"Translator.of(String apiKey)\"\n");