TagAPI (iTag) question

Discussion in 'Plugin Development' started by ThrustLP, May 24, 2016.

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

    ThrustLP

    Hey guys! Basicly:

    I have got an player p.

    and I update his tag TagAPI.refreshPlayer(p);

    But I only want to update it if the tag he has at the moment != to the tag I want to give him. Lets say the tag I want to give him is String give = "[T]" + p.getDisplayName();

    But how can I get the tag he has at the moment? ;(


    Thank you!
     
    Last edited: May 24, 2016
  2. Store the player's renamed tag in a file whenever they change it? Also, what's this needed for?
     
  3. Offline

    Zombie_Striker

    @ThrustLP
    Create a repeating task. Check if the player has the same display name every ten to fifteen seconds. If his name changes, reset it.
     
Thread Status:
Not open for further replies.

Share This Page