Solved TagAPI

Discussion in 'Plugin Development' started by MrPmiguelP, Feb 3, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    MrPmiguelP

    Hey peeps,
    I have an issue regarding TagAPI.

    I am making a plugin that needs people to have different name colors. I have done this many times before, but for some reason it is not working now. All the players appear as yourself. So let's say; Player A looks like me, and Player A sees me as himself as well. I'm using this to refresh the player:
    Code:
    TagAPI.refreshPlayer(p);
    If anyone would like to help me, then it would be appreciated.

    Thank you!
    Miguel
     
  2. Offline

    MrPmiguelP

    Let me be more specific:
    This code ->
    Code:
    for(Player p: Bukkit.getOnlinePlayers()) {
        TagAPI.refreshPlayer(p);
    }
    is cloning everyone... Do you have any solutions other then making my own method for colored names?
     
  3. Offline

    macguy8

    Please upload your listener class where you listen for the tag event. I think you're confusing .getPlayer() - Player who SEES that player, and .getNamedPlayer() - Gets the player that's GETTING the tag.
     
  4. Offline

    MrPmiguelP

    Nvm, got it working. I made my own method to set the player's name color and it was messing things up.

    solved!
     
Thread Status:
Not open for further replies.

Share This Page