Comments (13)
Can you post the code you are using as well as a plugin list.
from barapi.
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.
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.
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.
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.
:D How Can I actually access that BarAPI folder if it doesn't even generate? :D I'll create it by myself.
from barapi.
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.
Memory and explosions are two completely separate things.
The folder will generate on v3.0+ ensure you are using the latest version.
from barapi.
I do but it says v2.0.
from barapi.
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.
ok.
from barapi.
Any movement with this?
from barapi.
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)
- Hellow, could you fix it please? HOT 2
- Bug dragons cordonate HOT 1
- BarAPI v3.2 doesn't work on Spigot 1.8 build #1658 HOT 3
- Show enderbar in different ways to the players HOT 1
- Bossbar is not always visible [1.8] HOT 1
- Any way to block default Wither Boss Bar? HOT 2
- BarAPI Update for 1.8 HOT 2
- Dragon in the wrong location HOT 3
- Default configuration throws error HOT 1
- Not work with spigot 1.7.10 #1649
- Timer HOT 2
- getDragonLocation() throws a NullPointerException HOT 3
- Error HOT 1
- Maven repository broken HOT 5
- Youtube down HOT 5
- Support 1.9
- [BarAPI] Task #29943 for BarAPI v3.4 generated an exception HOT 1
- Help. HOT 2
- where's the repo
- [AsyncWorldEdit] Task #18236 for AsyncWorldEdit v1.2 generated an exception HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from barapi.