Glowstone-Legacy icon indicating copy to clipboard operation
Glowstone-Legacy copied to clipboard

Scoreboards

Open Aaron1011 opened this issue 10 years ago • 23 comments

This PR is the same as #340, except it's against master.

This merges cleanly, if @SpaceManiac wants it merged into master instead of scoreboards


Edited by turt2live

Related Links:

  • Glowkit: GlowstoneMC/Glowkit#35
  • Ticket: #81

Aaron1011 avatar Oct 19 '14 18:10 Aaron1011

@Aaron1011 Thank you for your contribution! I didn't find a Glowkit dependency in your description. If your pull request does require a Glowkit pull request, please make a new comment with the following text (backticks, , included): GLOWKIT: 1where1` is the Glowkit pull request number.

If your pull request does not require a Glowkit pull request then there is nothing you have to do.

turt2bot avatar Oct 19 '14 18:10 turt2bot

Shouldn't the 'tag' in nametagVisibility be capitalized?

jengel3 avatar Oct 19 '14 18:10 jengel3

@Jake0oo0: I think it should be left the way it is. Since nametag is one word, it should be left lowercase, as only the first letter of each word is capitalized.

Aaron1011 avatar Oct 19 '14 19:10 Aaron1011

Minecraft Wiki says it's two words here...I assume that's right...

jengel3 avatar Oct 19 '14 19:10 jengel3

It's fine as-is.

On Sun, Oct 19, 2014 at 1:45 PM, Jake [email protected] wrote:

Minecraft Wiki says it's two words here http://minecraft.gamepedia.com/Name_Tag...I assume that's right...

— Reply to this email directly or view it on GitHub https://github.com/GlowstoneMC/Glowstone/pull/459#issuecomment-59662277.

Sincerely, Travis R

(Turt2Live http://turt2live.com/)

turt2live avatar Oct 19 '14 19:10 turt2live

GLOWKIT: 35

turt2live avatar Oct 19 '14 21:10 turt2live

@turt2live This PR has been associated with GlowstoneMC/Glowkit#35 - Scoreboards :D

turt2bot avatar Oct 19 '14 21:10 turt2bot

@Aaron1011 Because this PR causes a huge amount of spam in the console, I do ask that your PR solve it.

It should be very clear from the following resource: click me (image)

turt2live avatar Oct 19 '14 22:10 turt2live

Welcome!

What test plugin is that?

dequis avatar Oct 19 '14 23:10 dequis

@dequis The first working scoreboard plugin I found on Google.

turt2live avatar Oct 19 '14 23:10 turt2live

@turt2bot: That's actually totally unrelated to my PR. That scoreboards plugin is trying to lookup a player. UuidUtils attempts to fetch it from Mojang, but doesn't handle JSON parsing errors, causing the exception to propagate up.

The Skulls PR (https://github.com/GlowstoneMC/Glowstone/pull/267) properly handles parse and URL related errors; we might want to switch UuidUtils over to it once it gets merged.

Aaron1011 avatar Oct 20 '14 20:10 Aaron1011

@Aaron1011 It's related as the scoreboard API takes in OfflinePlayers. But because Skulls is more mature and on it's way to being pulled and it contains the changes you have described, I am putting this PR on hold until that one is pulled.

PRHOLD: Waiting for #267

turt2live avatar Oct 20 '14 22:10 turt2live

Referencing #81 because all the PRs linked from that ticket are closed. Don't mind me.

dequis avatar Nov 05 '14 05:11 dequis

Hold cleared: Skulls have been pulled. Pending further review.

turt2live avatar Nov 06 '14 04:11 turt2live

@Aaron1011 Thanks to some help with @dequis, the following bugs were found:

  • When a team has a color, chat does not change
  • The formatting is off in /scoreboard players test (missing spaces)
  • When using /scoreboard teams leave TEST, we got this exception (TEST is the team name)
  • The following caused a client crash:
    1. Remove existing team TEST
    2. Add new team
    3. Join new team
    4. You have crashed (and will crash until remove from team)
  • Lack of error messages in some commands, like /scoreboard teams this is a bad argument

Additionally, it would be helpful if at least the health objective was implemented.

turt2live avatar Nov 09 '14 19:11 turt2live

@Aaron1011 The health objective doesn't work (me and @dequis drowned ourselves)

turt2live avatar Nov 11 '14 22:11 turt2live

@turt2live: It's fixed now (I've tested)

Aaron1011 avatar Nov 12 '14 01:11 Aaron1011

@Aaron1011

  • Players that first join show up on the health scoreboard, but not existing players
    • Fixed with a relog
  • Suppress the exception message entirely. It should only show if the UUID was unable to be fetched for a player logging in (I'm allowing this to be included in this PR)

turt2live avatar Nov 23 '14 04:11 turt2live

Players that first join show up on the health scoreboard, but not existing players Fixed with a relog

This is actually vanilla behavior. I can change it if you want, but it's not a bug.

Suppress the exception message entirely. It should only show if the UUID was unable to be fetched for a player logging in (I'm allowing this to be included in this PR)

Where is an exception being thrown?

Aaron1011 avatar Nov 24 '14 00:11 Aaron1011

This is actually vanilla behavior. I can change it if you want, but it's not a bug.

Well damn. Then what's the vanilla way to add someone to the health scoreboard without relogin?

dequis avatar Nov 24 '14 03:11 dequis

Make them take damage xD

Aaron1011 avatar Nov 24 '14 11:11 Aaron1011

< dx> Aaron1011: in your scoreboard branch, if there's a health objective and someone isn't showing in the objectives list, taking damage should add them there? < Aaron1011> dx: Yes < Aaron1011> I've confirmed that's vanilla behavior < Aaron1011> Regardless of whether or not yu take damage, you'll get added on relog < Aaron1011> Which is also what vanilla does

(mins later)

< dx> Aaron1011: okay just tested your pr, it does behave as expected. you win. this time. < Aaron1011> Yes!

  • Aaron1011 does a victory dance

dequis avatar Nov 24 '14 11:11 dequis

@Aaron1011 As a warning, your pull request has checkstyle failures. Although these do not affect the pull request process, it is strongly recommended to fix them. The failures are outlined on the Travis-CI build as well as below.

GlowWorld.java:17:8: Unused import - net.glowstone.io.ScoreboardIoService.
GlowWorld.java:18:1: Duplicate import to line 10 - net.glowstone.io.WorldMetadataService.WorldFinalValues.
GlowWorld.java:19:1: Duplicate import to line 11 - net.glowstone.io.WorldStorageProvider.
GlowWorld.java:20:1: Duplicate import to line 12 - net.glowstone.io.anvil.AnvilWorldStorageProvider.

turt2live avatar Jan 15 '15 03:01 turt2live