TagAPI

46 - Setting tags affects objectives displayed below names

What steps will reproduce the problem?

  1. Set the tag of the player
  2. Set the scoreboard of the player to this scoreboard(the reference is kept by the plugin):
Scoreboard scoreboard = getServer().getScoreboardManager().getNewScoreboard();
Objective o = scoreboard.registerNewObjective("health", Criterias.HEALTH);
o.setDisplaySlot(DisplaySlot.BELOW_NAME);
o.setDisplayName("Health");

What is the expected output? What do you see instead?
I expected to see the health of the player, but I saw "0 health" instead. After I disabled TagAPI, it showed the health of the player.

What version of the product are you using?
v2.2

Do you have an error log of what happened?
No.

Please provide any additional information below.
I'm creating a minigame plugin, but I want enemies to be displayed in red and allies to be displayed in green. It's harder to do using the Scoreboard API, so I decided to use TagAPI instead.

User When Change
mbaxter Feb 16, 2014 at 00:28 UTC Changed status from Started to Declined
mbaxter Apr 15, 2013 at 05:20 UTC
Technius Apr 15, 2013 at 00:56 UTC Changed description:
  What steps will reproduce the problem?\\
  # Set the tag of the player
- # Set the scoreboard of the player to this scoreboard:
+ # Set the scoreboard of the player to this scoreboard(the reference is kept by the plugin):
  <<code>>
  Scoreboard scoreboard = getServer().getScoreboardManager().getNewScoreboard();
  Objective o = scoreboard.registerNewObjective("health", Criterias.HEALTH);
Technius Apr 15, 2013 at 00:56 UTC Changed description:
- What steps will reproduce the problem?
+ What steps will reproduce the problem?\\
+ # Set the tag of the player
+ # Set the scoreboard of the player to this scoreboard:
  <<code>>
  Scoreboard scoreboard = getServer().getScoreboardManager().getNewScoreboard();
  Objective o = scoreboard.registerNewObjective("health", Criterias.HEALTH);
  o.setDisplaySlot(DisplaySlot.BELOW_NAME);
  o.setDisplayName("Health");
-
- //Later
-
- Player player; //Represents the player
- player.setScoreboard(scoreboard);
  <</code>>
  What is the expected output? What do you see instead?\\
Technius Apr 15, 2013 at 00:54 UTC Changed description:
  player.setScoreboard(scoreboard);
  <</code>>

- What is the expected output? What do you see instead?
+ What is the expected output? What do you see instead?\\
  I expected to see the health of the player, but I saw "0 health" instead.  After I disabled TagAPI, it showed the health of the player.
- What version of the product are you using?
+ What version of the product are you using?\\
  v2.2
- Do you have an error log of what happened?
+ Do you have an error log of what happened?\\
  No.
- Please provide any additional information below.
+ Please provide any additional information below.\\
-
+ I'm creating a minigame plugin, but I want enemies to be displayed in red and allies to be displayed in green.  It's harder to do using the Scoreboard API, so I decided to use TagAPI instead.
Technius Apr 15, 2013 at 00:53 UTC Changed description type from Plain Text to WikiCreole
Technius Apr 15, 2013 at 00:53 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of mbaxter mbaxter Feb 22, 2014 at 03:59 UTC - 0 likes

    The plugin changing the scoreboard has to track the TagAPI event and use that value as the name with a score.

    www.joe.to Gaming Community - Over a decade of fun!

    Four Minecraft servers, four TF2 servers, CSS and Garry's Mod.

    http://forums.joe.to

  • Avatar of Simo389 Simo389 Feb 19, 2014 at 03:34 UTC - 0 likes

    @mbaxter: Go

    Can you please give an example of how to do this for something like displaying player health?

    Last edited Feb 19, 2014 by Simo389
  • Avatar of mbaxter mbaxter Feb 16, 2014 at 00:29 UTC - 0 likes

    This is an unfixable situation from TagAPI's side. It is doable for scoreboard-utilizing plugins to adjust, but also unpleasant.

  • Avatar of ThaSourceGaming ThaSourceGaming Feb 05, 2014 at 00:55 UTC - 0 likes

    PLEASE Get it fixed... It's been a year almost. We really need this fixed to work with Health bar + NameTags

  • Avatar of darkness1999 darkness1999 Aug 22, 2013 at 15:42 UTC - 0 likes

    Please have a look at the ColoredTags plugin.

    BFAK:90850870,218e1d7422d341c847e4fa6fcd13f975c8c5a19f889d216026b99d12e0e72bd5

  • Avatar of Etcher1 Etcher1 Aug 18, 2013 at 01:56 UTC - 0 likes

    Is this issue still being worked on? I would really love for these two plugins to work in conjunction.

  • Avatar of deaddude22 deaddude22 Jul 16, 2013 at 12:31 UTC - 0 likes

    So what's happening with this? Is it being worked on or what's the current progress?

  • Avatar of deaddude22 deaddude22 Jul 03, 2013 at 12:54 UTC - 0 likes

    Is this being worked on cause i'd love this plugin back..

  • Avatar of Grave9912 Grave9912 Jul 02, 2013 at 16:56 UTC - 0 likes

    Does the TagAPI 1.6.1 have the fix?

    TimePVP

  • Avatar of mbaxter mbaxter Jun 20, 2013 at 20:24 UTC - 0 likes

    This is on hold due to upcoming changes in 1.6

Facts

Last updated
Feb 16, 2014
Reported
Apr 15, 2013
Status
Declined - We decided not to take action on this ticket.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
11

Reported by

Possible assignees