Giter VIP home page Giter VIP logo

Comments (13)

confuser avatar confuser commented on September 26, 2024

Can you post the code you are using as well as a plugin list.

from barapi.

Lionhard98 avatar Lionhard98 commented on September 26, 2024

I would really unlikely want to share the code, I use it in many parts of my code and it is in my RPG project, which I would like to keep secret (The code).

My plugins are (Most of them are mine): uReview, uPack, Informative, ItemShowcase, Administration Toolkit, KonohaKsRequest (haha, have to delete that (Its my test server)), BOSEconomy, Lores, Vault, Quick Support, ProtocolLib, Multiverse-Core, CommandItems, KickOnJoin, uEffects, Mineteria, BarAPI, McRoleplay, uPoints, BurnPlayers, uGroups.

But that really isn't a conflicting plugin. It must be BarAPI. On all servers I used BarAPI it appears. I have 2 plugins which uses BarAPI. FIrst, I tried the first plugin: explosions suddenly came from bedrock up to the sky causing huge lags. That was on my public server. THen I tried it on my test server, same. Then I made my RPG Plugin tried on both the test server and public server, on both servers this happens. Then a tester joined my RPG plugin and tried the RPG plugin, same happened. Another tester tried RPG (I have 2 now) and it happened both to his normal server and his development server. And someone commented your page with the same lag error.
That cannot be a conflicting plugin. I like BarAPI, please fix this, we otherwise can't use it. :(

from barapi.

confuser avatar confuser commented on September 26, 2024

I just want to see where you are using BarAPI as to whether or not when the dragon packets are sent could be a factor.

Can you confirm that this issue still occurs with BarAPI in test mode with no other plugins? BarAPI/config.yml set it to true (will need a server restart). It'll send a testing bar message to every player online.

from barapi.

Lionhard98 avatar Lionhard98 commented on September 26, 2024
public void updateExpBarGlobal(){
    Player[] onlinePlayers = this.getServer().getOnlinePlayers();
    for (Player player : onlinePlayers){
        updateExpBar(player);
    }
}

public void updateExpBar(Player player){
    int exp = players.getInt(player.getName() + ".exp");
    int level = players.getInt(player.getName() + ".level");

    int nextLevel = level + 1;
    List<String> enabledWorlds = (List<String>) config.getStringList("worlds.enabled");
    if(enabledWorlds.contains(player.getWorld().getName())){
        if(level>0){
            if(levels.contains(nextLevel + ".exp")){
                int requiredExp = levels.getInt(nextLevel + ".exp");
                float expPercentage = Float.parseFloat(Double.toString(exp*100.0/requiredExp));
                BarAPI.setMessage(player, ChatColor.GREEN + Integer.toString(exp) + "/" + requiredExp + " Exp " + ChatColor.DARK_GREEN + "(" + ChatColor.WHITE + "Lvl " + Integer.toString(level) + ChatColor.DARK_GREEN + ")", expPercentage);
            }else{
                BarAPI.setMessage(player, ChatColor.GREEN + Integer.toString(exp) + " Exp " + ChatColor.DARK_GREEN + "(" + ChatColor.WHITE + "Lvl " + Integer.toString(level) + ChatColor.DARK_GREEN + ")", (float) 100.0);
            }
        }else{
            BarAPI.setMessage(player, ChatColor.RED + "You aren't successfully registered! Please rejoin!", (float) 0.0);
        }
    }else{
        if(BarAPI.hasBar(player)){
            BarAPI.removeBar(player);
        }
    }
}

I will test later if something happens with only BarAPI and my plugin installed.

from barapi.

confuser avatar confuser commented on September 26, 2024

No, see if it happens with only BarAPI installed with testMode set to true in the config. No other plugins. If it doesn't then we can rule out that its either not the API itself, or an issue with the setMessage(player, String) method as testMode uses the timer method.

from barapi.

Lionhard98 avatar Lionhard98 commented on September 26, 2024

:D How Can I actually access that BarAPI folder if it doesn't even generate? :D I'll create it by myself.

from barapi.

Lionhard98 avatar Lionhard98 commented on September 26, 2024

Hey, I just readed the comments on BarAPI and you told that he never used BarAPI.removeBar(player); and thats why he runs out of memory. Can this be also the thing why those explosions appear?

from barapi.

confuser avatar confuser commented on September 26, 2024

Memory and explosions are two completely separate things.

The folder will generate on v3.0+ ensure you are using the latest version.

from barapi.

Lionhard98 avatar Lionhard98 commented on September 26, 2024

I do but it says v2.0.

from barapi.

confuser avatar confuser commented on September 26, 2024

Not quite sure what happened there. I've deleted it and re-uploaded it.

On Fri, Jan 24, 2014 at 2:57 PM, Lionhard98 [email protected]:

I do but it says v2.0.


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-33228832
.

from barapi.

Lionhard98 avatar Lionhard98 commented on September 26, 2024

ok.

from barapi.

confuser avatar confuser commented on September 26, 2024

Any movement with this?

from barapi.

Lionhard98 avatar Lionhard98 commented on September 26, 2024

oh, sorry I did not work much on it and forgot to download the new barAPI. As soon as I continue on it, that will be soon as I finished administration panel, my other plugin, I will tell you if it still occurs!

from barapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.