-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doubt about api #9
Comments
Hello, you only have to copy/paste the content of the "core" and "bukkit" (or "sponge" if you're using Sponge) modules into your plugin |
I have a doubt about repeating lines and the anti flicker since I am using
the netherboard .jar but it does not let repeat lines and the flicker
bothers a lot since it blinks
El dom., 4 ago. 2019 a las 3:00, MinusKube (<[email protected]>)
escribió:
… Hello, just you have to copy/paste the content of the "netherboard-core"
and "netherboard-bukkit" (or "netherboard-sponge" if you're using Sponge)
modules into your plugin
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AMZEX54IIC2N3UOSELDKFILQCZWAZA5CNFSM4IJBICHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3P3DMA#issuecomment-517976496>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMZEX54AH6OIYP53ZTZCMLLQCZWAZANCNFSM4IJBICHA>
.
|
If it blinks, it's either because you're using 1.7, either because you're not updating the line correctly just by using And I'm not sure what you mean by "reapeating lines", but if you want two lines with the same text, you need to make these lines a little different by adding a color at the end of the line for example, so the line is different, but looks exactly the same. |
https://pastebin.com/LRaL6waF
Look here I show you the code it may be that something is wrong since it is
the first time I created a scoreboard and decided to use an api to make a
good scoreboard and I would like to know if you can help me please, thank
you very much for your attention
El mié., 7 ago. 2019 a las 13:48, MinusKube (<[email protected]>)
escribió:
… If it blinks, it's either because you're using 1.7, either because you're
not updating the line correctly just by using board.set("Test Score", 5);
(maybe you're removing then setting the line again, or maybe you're
destroying and recreating the scoreboard each time).
And I'm not sure what you mean by "reapeating lines", but if you want two
lines with the same text, you need to make these lines a little different
by adding a color at the end of the line for example, so the line is
different, but looks exactly the same.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AMZEX54BX3WWE2QKZKGRHG3QDL4FBA5CNFSM4IJBICHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3ZAXYQ#issuecomment-519179234>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMZEX57WQW6DDD75SNEFKFDQDL4FBANCNFSM4IJBICHA>
.
|
Yeah, you're recreating the scoreboard for the player every time you call the |
I mean you use Netherboard.instance (). GetBoard (player) in a
playerjoinevent event? or on createscoreboard or on setscoreboard, and this
is to get the scoreboard but I didn't understand how to put it on the
player, sorry for bothering you so much
El mié., 7 ago. 2019 a las 20:53, MinusKube (<[email protected]>)
escribió:
… Yeah, you're recreating the scoreboard for the player every time you call
the setScoreboard method. You must create the scoreboard only once (when
the player join for example), then, inside your scheduler, you can get the
player's board using Netherboard.instance().getBoard(player) and call all
the board.set(...) methods to update the lines.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AMZEX5Z5I6475SBQAHRQ24LQDNOADA5CNFSM4IJBICHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD32ASQY#issuecomment-519309635>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMZEX5ZWGNHV4R5FJLXYJLLQDNOADANCNFSM4IJBICHA>
.
|
You use the |
Netherboard.instance().createBoard(player, config, null);
Que tendría que poner donde dice null y null por que si pongo config me
dice que cambie el FileConfiguration a tring y no funciona
El mié., 7 ago. 2019 a las 22:43, MinusKube (<[email protected]>)
escribió:
… You use the Netherboard.instance().createBoard(...) inside your
createScoreboard method to create the scoreboard only once for the
player, then BPlayerBoard board = Netherboard.instance().getBoard(player)
inside your setScoreboard method, in order to get the player's board so
you can update it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AMZEX5ZFBCLKDSCK4DFM2LDQDN25XA5CNFSM4IJBICHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD32FP2Y#issuecomment-519329771>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMZEX5YT65ERA6SGLDMA5FTQDN25XANCNFSM4IJBICHA>
.
|
Netherboard.instance().createBoard(player, null);
What should I put where it says null and null because if I put config it
tells me to change the FileConfiguration to tring and it doesn't work
El mié., 7 ago. 2019 a las 22:43, MinusKube (<[email protected]>)
escribió:
… You use the Netherboard.instance().createBoard(...) inside your
createScoreboard method to create the scoreboard only once for the
player, then BPlayerBoard board = Netherboard.instance().getBoard(player)
inside your setScoreboard method, in order to get the player's board so
you can update it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AMZEX5ZFBCLKDSCK4DFM2LDQDN25XA5CNFSM4IJBICHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD32FP2Y#issuecomment-519329771>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMZEX5YT65ERA6SGLDMA5FTQDN25XANCNFSM4IJBICHA>
.
|
You must put the display name of the scoreboard here |
https://pastebin.com/0s3VmGg2
It would help me to correct my code please why I don't understand much
about this scoreboard
El mié., 7 ago. 2019 a las 23:43, MinusKube (<[email protected]>)
escribió:
… You must put the display name of the scoreboard here
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AMZEX5ZWV7PUMH5YB3GNTRLQDOB47A5CNFSM4IJBICHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD32IGIA#issuecomment-519340832>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMZEX5YKBJOT2WMI3CBESMTQDOB47ANCNFSM4IJBICHA>
.
|
@EventHandler
public void onPlayerJoin(PlayerJoinEvent event) {
Player player = event.getPlayer();
// Create the scoreboard when the player joins
Netherboard.instance().createBoard(player, "My Scoreboard");
}
@EventHandler
public void onPlayerQuit(PlayerQuitEvent event) {
Player player = event.getPlayer();
// Delete the scoreboard when the player leaves
Netherboard.instance().deleteBoard(player);
}
public void initScoreboardTask(int delay) {
Bukkit.getScheduler().runTaskTimer(plugin, () -> {
FileConfiguration config = plugin.getConfig();
for(Player player : Bukkit.getOnlinePlayers()) {
// Update the scoreboard every <delay> ticks for each online player
updateScoreboard(player, config);
}
}, 0, delay);
}
public void updateScoreboard(Player player, FileConfiguration config) {
BPlayerBoard board = Netherboard.instance().getBoard(player);
// You call all the set methods here
board.set(...);
} |
Yes I use it
ScoreboardPlayer board = new ScoreboardPlayer(this);
board.initScoreboardTask(Integer.valueOf(getConfig().getString("Scoreboard.ticks")));
in the main class I get this error
https://pastebin.com/QjTYdFwp
What leaves the error in the console is the updateScoreboard (player,
config); and a board.set
And if I register the class as an event by the playerjoinevent the
scoreboard does not appear and no error
El vie., 9 ago. 2019 a las 9:41, MinusKube (<[email protected]>)
escribió:
… @EventHandlerpublic void onPlayerJoin(PlayerJoinEvent event) {
Player player = event.getPlayer();
Netherboard.instance().createBoard(player, "My Scoreboard");
}
public void initScoreboardTask(int delay) {
Bukkit.getScheduler().runTaskTimer(plugin, () -> {
FileConfiguration config = plugin.getConfig();
for(Player player : Bukkit.getOnlinePlayers()) {
updateScoreboard(player, config);
}
}, 0, delay);
}
public void updateScoreboard(Player player, FileConfiguration config) {
BPlayerBoard board = Netherboard.instance().getBoard(player);
// You call all the set methods here
board.set(...);
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AMZEX5ZEFJMXVTBXP2E7QF3QDVQXNA5CNFSM4IJBICHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD36RTVA#issuecomment-519903700>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMZEX56RGUTWLSAMIFKLZA3QDVQXNANCNFSM4IJBICHA>
.
|
I love you, thanks for the help
El vie., 9 ago. 2019 a las 9:41, MinusKube (<[email protected]>)
escribió:
… @EventHandlerpublic void onPlayerJoin(PlayerJoinEvent event) {
Player player = event.getPlayer();
Netherboard.instance().createBoard(player, "My Scoreboard");
}
public void initScoreboardTask(int delay) {
Bukkit.getScheduler().runTaskTimer(plugin, () -> {
FileConfiguration config = plugin.getConfig();
for(Player player : Bukkit.getOnlinePlayers()) {
updateScoreboard(player, config);
}
}, 0, delay);
}
public void updateScoreboard(Player player, FileConfiguration config) {
BPlayerBoard board = Netherboard.instance().getBoard(player);
// You call all the set methods here
board.set(...);
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AMZEX5ZEFJMXVTBXP2E7QF3QDVQXNA5CNFSM4IJBICHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD36RTVA#issuecomment-519903700>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMZEX56RGUTWLSAMIFKLZA3QDVQXNANCNFSM4IJBICHA>
.
|
Hey, you wanted this question to be silly, but once I imported the core and
the bukkit from the netherboard src, I have to use Netherboard. as if he
was using the .jar?
El vie., 9 ago. 2019 a las 9:41, MinusKube (<[email protected]>)
escribió:
… @EventHandlerpublic void onPlayerJoin(PlayerJoinEvent event) {
Player player = event.getPlayer();
Netherboard.instance().createBoard(player, "My Scoreboard");
}
public void initScoreboardTask(int delay) {
Bukkit.getScheduler().runTaskTimer(plugin, () -> {
FileConfiguration config = plugin.getConfig();
for(Player player : Bukkit.getOnlinePlayers()) {
updateScoreboard(player, config);
}
}, 0, delay);
}
public void updateScoreboard(Player player, FileConfiguration config) {
BPlayerBoard board = Netherboard.instance().getBoard(player);
// You call all the set methods here
board.set(...);
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AMZEX5ZEFJMXVTBXP2E7QF3QDVQXNA5CNFSM4IJBICHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD36RTVA#issuecomment-519903700>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMZEX56RGUTWLSAMIFKLZA3QDVQXNANCNFSM4IJBICHA>
.
|
Hey I have a doubt look when I use / mod for example I put in the code
if (StaffMode.staffmode.contains (p.getUniqueId ())) {and there I put
board.set and that all good but when you take the / mod the score is
bugeada bone does not leave the staffboard you have to leave and
re-enter
El vie., 9 ago. 2019 a las 9:41, MinusKube (<[email protected]>)
escribió:
… @EventHandlerpublic void onPlayerJoin(PlayerJoinEvent event) {
Player player = event.getPlayer();
Netherboard.instance().createBoard(player, "My Scoreboard");
}
public void initScoreboardTask(int delay) {
Bukkit.getScheduler().runTaskTimer(plugin, () -> {
FileConfiguration config = plugin.getConfig();
for(Player player : Bukkit.getOnlinePlayers()) {
updateScoreboard(player, config);
}
}, 0, delay);
}
public void updateScoreboard(Player player, FileConfiguration config) {
BPlayerBoard board = Netherboard.instance().getBoard(player);
// You call all the set methods here
board.set(...);
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AMZEX5ZEFJMXVTBXP2E7QF3QDVQXNA5CNFSM4IJBICHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD36RTVA#issuecomment-519903700>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMZEX56RGUTWLSAMIFKLZA3QDVQXNANCNFSM4IJBICHA>
.
|
Yeah, you only don't have to put |
And I didn't understand your problem with your staff thing |
Hey look I have put if (Staff Mode.contains (p)) {and inside the if I have
board.set and as a staffboard all good but at the time the / mod is removed
the staffboard is there and does not go
El vie., 9 ago. 2019 a las 13:21, MinusKube (<[email protected]>)
escribió:
… And I didn't understand your problem with your staff thing
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AMZEX55VZ2QX6BYT4LPXJKTQDWKSFA5CNFSM4IJBICHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD37EIGI#issuecomment-519980057>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMZEX55NZ343XNU3OCWXHF3QDWKSFANCNFSM4IJBICHA>
.
|
Hello good morning, I have a doubt about how to get lines from a config.yml
El vie., 9 ago. 2019 a las 13:21, MinusKube (<[email protected]>)
escribió:
… And I didn't understand your problem with your staff thing
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AMZEX55VZ2QX6BYT4LPXJKTQDWKSFA5CNFSM4IJBICHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD37EIGI#issuecomment-519980057>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMZEX55NZ343XNU3OCWXHF3QDWKSFANCNFSM4IJBICHA>
.
|
https://prnt.sc/ot676n
Hello good morning, I have a problem with the api look there I leave you a
good cap I explain to you on my server I put ProtocolSupport to support
version 1.7 and if you enter with 1.7 the scoreboard looks towards
El dom., 11 ago. 2019 a las 10:06, Not Cacha (<[email protected]>)
escribió:
… Hello good morning, I have a doubt about how to get lines from a config.yml
El vie., 9 ago. 2019 a las 13:21, MinusKube ***@***.***>)
escribió:
> And I didn't understand your problem with your staff thing
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#9?email_source=notifications&email_token=AMZEX55VZ2QX6BYT4LPXJKTQDWKSFA5CNFSM4IJBICHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD37EIGI#issuecomment-519980057>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AMZEX55NZ343XNU3OCWXHF3QDWKSFANCNFSM4IJBICHA>
> .
>
|
Hello, good morning ... I would like you to help me with the problem I
have, I don't know why I am getting a task27 error, it is bothering me
a lot here I show you the error and I pass you my class and I am glad
to help you because I do not I know what I can do now
https://pastebin.com/4yYyGYp7
https://pastebin.com/yC2S4BM1
El jue., 15 ago. 2019 a las 15:45, Not Cacha (<[email protected]>)
escribió:
… https://prnt.sc/ot676n
Hello good morning, I have a problem with the api look there I leave you a
good cap I explain to you on my server I put ProtocolSupport to support
version 1.7 and if you enter with 1.7 the scoreboard looks towards
El dom., 11 ago. 2019 a las 10:06, Not Cacha ***@***.***>)
escribió:
> Hello good morning, I have a doubt about how to get lines from a config.yml
>
>
> El vie., 9 ago. 2019 a las 13:21, MinusKube ***@***.***>)
> escribió:
>
>> And I didn't understand your problem with your staff thing
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <#9?email_source=notifications&email_token=AMZEX55VZ2QX6BYT4LPXJKTQDWKSFA5CNFSM4IJBICHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD37EIGI#issuecomment-519980057>,
>> or mute the thread
>> <https://github.com/notifications/unsubscribe-auth/AMZEX55NZ343XNU3OCWXHF3QDWKSFANCNFSM4IJBICHA>
>> .
>>
>
|
Good I have a doubt how I can use the scoreboard api without using your .jar to improve the experience of my plugin
The text was updated successfully, but these errors were encountered: