diff --git a/.idea/misc.xml b/.idea/misc.xml index ee3319a..735e1f6 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/build.gradle b/build.gradle index cde47d3..7c89806 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { } apply plugin: 'maven-publish' group 'com.the5gi.deepj' -version '1.4.2' +version '1.4.3' sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11 diff --git a/src/main/java/com/the5gi/DeepJ/Translator.java b/src/main/java/com/the5gi/DeepJ/Translator.java index ff150d9..3152948 100644 --- a/src/main/java/com/the5gi/DeepJ/Translator.java +++ b/src/main/java/com/the5gi/DeepJ/Translator.java @@ -23,7 +23,7 @@ public class Translator { public Translator() { //GAK 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"); + 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 constructor." + "\n[DeepJ] If you want to define an different authkey every time do: \"new Translator(String authKey)\"\n"); } else { request = new Request(globalAPIKey); } @@ -31,7 +31,7 @@ public class Translator { public Translator(boolean silent) { //GAK (SILENCABLE) if (globalAPIKey == null && !silent) { - 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"); + 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 constructor." + "\n[DeepJ] If you want to define an different authkey every time do: \"new Translator(String authKey)\"\n"); } else { request = new Request(globalAPIKey); } @@ -39,14 +39,14 @@ public class Translator { public Translator(String authKey) { //NORMAL REQUEST (GAK Notice) (NO SILENCE) if (!Objects.equals(globalAPIKey, "null")) { - System.out.println("[DeepJ] Looks like you have defined a global API key already! You can use if by just typing \"new Traslator()\"" + "\n instead of \"new Translator(String authKey)\". NOTE: This will work but just some advice :)"); + System.out.println("[DeepJ] Looks like you have defined a global API key already! You can use if by just typing \"new Translator()\"" + "\n instead of \"new Translator(String authKey)\". NOTE: This will work but just some advice :)"); } request = new Request(authKey); } public Translator(String apiKey, boolean silence) { //NORMAL REQUEST (GAK SILENCEABLE) if (!Objects.equals(globalAPIKey, "null") && !silence) { - System.out.println("[DeepJ] Looks like you have defined a global API key already! You can use if by just typing \"new Traslator()\"" + "\n instead of \"new Translator(String authKey)\". NOTE: This will work but this is just some advice :)"); + System.out.println("[DeepJ] Looks like you have defined a global API key already! You can use if by just typing \"new Translator()\"" + "\n instead of \"new Translator(String authKey)\". NOTE: This will work but this is just some advice :)"); } request = new Request(apiKey); }