kacperduras / protocoltab Goto Github PK
View Code? Open in Web Editor NEWSmall, easy and fast in use api for managing tab list on your Minecraft server.
License: Apache License 2.0
Small, easy and fast in use api for managing tab list on your Minecraft server.
License: Apache License 2.0
Podczas wyjścia z gry występuje taki błąd
[20:29:02 WARN]: Exception in thread "Craft Scheduler Thread - 20" [20:29:02 WARN]: org.apache.commons.lang.UnhandledException: Plugin KOLEC v69 greg generated an exception while executing task 14 at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.IllegalArgumentException: Player can not be null! at org.apache.commons.lang3.Validate.isTrue(Validate.java:155) at pl.kacperduras.protocoltab.manager.ProtocolTab.update(ProtocolTab.java:56) at pl.kacperduras.protocoltab.manager.ProtocolTab.update(ProtocolTab.java:92) at api.Main.lambda$1(Main.java:115) at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) ... 3 more
I am sorry for my bad english.
What I wanted to do was insert a list of players for each slot in the TabList.
I came to a conclusion, which is the following:
However, I did not know how to make each player stay in each slot.
for (String key : TeamSpectatorKeySet()) {
Player player = Bukkit.getPlayer(key);
ProtocolTabAPI.getTablist(online).setSlot(¿X? ,"&4A: &7"+player.getName());
}
However, I have managed to solve my problem with a simple solution.
int slot = 1;
for (String key : TeamAKeySet())
{
Player player = Bukkit.getPlayer(key);
ProtocolTabAPI.getTablist(online).setSlot(slot, player.getDisplayName());
slot += 1;
}
My problem is already solved, sorry for the lost time.
Thanks for all.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.