Scoreboard Team Prefixs Chat

Discussion in 'Plugin Development' started by Jamscott, Jul 14, 2014.

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

    Jamscott

    How do I get a players Team prefix/suffix so im able to set in the join message
    Or Chat Event
     
  2. Offline

    rohan576

    If you're using Team objects for prefixes, you can use:

    String prefix = scoreboard.getPlayerTeam(player).getPrefix(); // replace scoreboard with the scoreboard object and player with the player object.
     
  3. Offline

    Jamscott

    Thx i didnt know how to check players teams that helps alot rohan576
     
  4. Offline

    fireblast709

  5. Offline

    Jamscott

    fireblast709 Ill check if a playerteams == null and then ill add them to a team
     
Thread Status:
Not open for further replies.

Share This Page