rlf / Holographic-Scoreboard

Minecraft Bukkit Plugin that allows for easy leaderboard generation using the Holographic Displays.
3 stars 8 forks source link

Holographic-Scoreboard and MC Scoreboard #18

Open tschaffter opened 9 years ago

tschaffter commented 9 years ago

I came across Holographic-Scoreboard (HGS) after reading how to use the vanilla MC scoreboard.

As an example, I created a scoreboard to keep track of the number of potions used:

/scoreboard objectives add P stat.useItem.minecraft.potion Potions used /scoreboard objectives setdisplay list P

The scoreboard can be visualized by pressing TAB.

Is it possible to display the information of this scoreboard using HGS?

rlf commented 9 years ago

I think so: http://minecraft.gamepedia.com/Scoreboard?cookieSetup=true

Try

/hgs create test 5m console scoreboard players list *
tschaffter commented 9 years ago

Thanks for your prompt answer!

The individual command /scoreboard players list * returns:

2015-04-23_12 23 59

However when I do /hgs create test 5m console scoreboard players list *, a message tells me that the HGS has been created but it is invisible (screenshot take at least 10 seconds after entering the command and at least 10 blocks behind the position where I entered the command).

2015-04-23_12 27 43

Here is the server log:

[12:29:14 INFO]: tschaffter issued server command: /hgs create test 1m console scoreboard players list *
[12:29:14 INFO]: Showing 3 tracked objective(s) for tschaffter:
[12:29:14 INFO]: - Health: 20 (H)
[12:29:14 INFO]: - Potions used: 3 (P)
[12:29:14 INFO]: - Damage Taken: 52 (D)
[12:29:14 INFO]: Showing 1 tracked objective(s) for Othocar:
[12:29:14 INFO]: - Health: 20 (H)
[12:29:14 INFO]: Showing 1 tracked objective(s) for Vouichet:
[12:29:14 INFO]: - Health: 20 (H)
[12:29:14 INFO]: Showing 1 tracked objective(s) for lolookik:
[12:29:14 INFO]: - Health: 20 (H)
[12:29:14 INFO]: Showing 1 tracked objective(s) for tschaffterGuest:
[12:29:14 INFO]: - Health: 20 (H)
[12:29:25 INFO]: Showing 3 tracked objective(s) for tschaffter:
[12:29:25 INFO]: - Health: 20 (H)
[12:29:25 INFO]: - Potions used: 3 (P)
[12:29:25 INFO]: - Damage Taken: 52 (D)
[12:29:25 INFO]: Showing 1 tracked objective(s) for Othocar:
[12:29:25 INFO]: - Health: 20 (H)
[12:29:25 INFO]: Showing 1 tracked objective(s) for Vouichet:
[12:29:25 INFO]: - Health: 20 (H)
[12:29:25 INFO]: Showing 1 tracked objective(s) for lolookik:
[12:29:25 INFO]: - Health: 20 (H)
[12:29:25 INFO]: Showing 1 tracked objective(s) for tschaffterGuest:
[12:29:25 INFO]: - Health: 20 (H)

At regular interval, the server log shows the output of the command /scoreboard players list * after creating the HGS. The log stops repeating when I remove the HGS. Is there something in the output of /scoreboard players list * which would make the HGS invisible?

However, the scoreboard displays correctly if I run your richies example.

rlf commented 9 years ago

Most likely, the scoreboard command doesn't use the "normal" plugin approach of communicating with the player - which means HGS can't see it.

We've had similar issues with SimpleClans - so perhaps it's time to look into how to "catch" those messages that currently evade HGS.