eren.
eren.
Explore posts from servers
JCHJava Community | Help. Code. Learn.
Created by eren. on 10/3/2024 in #java-help
Help
but i would rather not since im also validating the key
if (!API_KEY.equalsIgnoreCase("disabled") && API_KEY.length() != 32)
throw new RuntimeException("SkUnity API key is not 32 characters long. Are you sure you entered a valid key? " +
"You should set it to \"disabled\" if you don't want to use the SkUnity service.");
if (!API_KEY.equalsIgnoreCase("disabled") && API_KEY.length() != 32)
throw new RuntimeException("SkUnity API key is not 32 characters long. Are you sure you entered a valid key? " +
"You should set it to \"disabled\" if you don't want to use the SkUnity service.");
19 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 10/3/2024 in #java-help
Help
i could
19 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 10/3/2024 in #java-help
Help
private static final Map<String, AddonService> services = new HashMap<>();

@Override
public void onEnable() {
instance = this;
loadAddonServices();
...
}

private static void loadAddonServices() {
services.put("github", new GithubService());
services.put("skunity", new SkUnityService());
}
private static final Map<String, AddonService> services = new HashMap<>();

@Override
public void onEnable() {
instance = this;
loadAddonServices();
...
}

private static void loadAddonServices() {
services.put("github", new GithubService());
services.put("skunity", new SkUnityService());
}
this works, unless you have a better idea ill close the thread
19 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 10/3/2024 in #java-help
Help
because the plugin wasnt loaded yet
19 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 10/3/2024 in #java-help
Help
yes
19 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 10/3/2024 in #java-help
Help
maybe i should do some sort of loadServices() method rather than loading them in the field?
19 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 10/3/2024 in #java-help
Help
i didnt include the minecraft modding tag because i thought it would be more of a java issue
19 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 10/3/2024 in #java-help
Help
its the instance of a minecraft spigot plugin you either instance = this or Bukkit.getPluginManager().getPlugin(string) to get it, no other way as far as i know i tried both ways
19 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 7/16/2024 in #java-help
Help with Lombok
thanks anyway
14 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 7/16/2024 in #java-help
Help with Lombok
oh i just needed to remove = new ArrayList<>(10)
14 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 7/16/2024 in #java-help
Help with Lombok
im new to lombok
14 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 7/16/2024 in #java-help
Help with Lombok
i added singular and now what? i dont have any new methods or anything
14 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 7/16/2024 in #java-help
Help with Lombok
"not applicable to this field"
14 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 4/5/2024 in #java-help
Help with Gradle
i couldnt find something else as simple as guava, i just need a quick and simple event system but everything else feels too bloated
9 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 4/5/2024 in #java-help
Help with Gradle
sorry didnt see, no notifications my build script: https://hastebin.skyra.pw/sogewugige.pgsql
9 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 3/29/2024 in #java-help
Making 2 flavors of a jar
fixed by changing scope to complie
16 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 3/29/2024 in #java-help
Making 2 flavors of a jar
No description
16 replies
JCHJava Community | Help. Code. Learn.
Created by eren. on 3/29/2024 in #java-help
Making 2 flavors of a jar
No description
16 replies