Api and threading issue?

A new update is now available, introducing "Points of interest" and many more changes!
Latest hotfix: 0.9 (2025-11-05)
  • i have been working on a rather large plugin and i NEED to implement threading. i have been driving myself crazy with an issue tho. it seems to me that if i create a new thread the API creates hundreds of new threads. i have done some testing and i dont no think it is my code. any input would be helpful.


    Java
    // Init player method
    public void initPlayer(Player player){
    if(rpCore.getConfig().getDevConfig().getMultiThreadEnabled()){
    Thread initThread = new Thread(new InitPlayer(rpCore, player, rpCore.getConfig().getDevConfig().getMultiThreadEnabled()));
    initThread.start();
    }else{
    new InitPlayer(rpCore, player, rpCore.getConfig().getDevConfig().getMultiThreadEnabled());
    }
    }



    Java
    //ps.debug method
    println("[RPCore/PlayerSettings]" , 9);
    for (Map.Entry<String, String> entry : settings.entrySet()) {
    String key = entry.getKey();
    String value = entry.getValue();
    println("\t "+key+": -> "+value, 14);
    }


    logs to show what i think is an issue

    Threaded threaded console output.txt

    NON-Threaded non threaded consol output.txt


    Again it may be me but o do not believe it is.

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!