I'm Bored so I made a Builder #4

This commit is contained in:
5gi 2023-03-23 10:16:07 -04:00
parent af64960abf
commit c135da4115

View File

@ -28,7 +28,7 @@ public class Translator {
request = new Request(globalAPIKey);
}
}
public Translator(bool silent) {
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");