Discussion in 'Plugin Development' started by Jamscott, Jul 14, 2014.
How do I get a players Team prefix/suffix so im able to set in the join message
Or Chat Event
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.
Thx i didnt know how to check players teams that helps alot rohan576
rohan576 Jamscott don't forget null checks in case the player has no team
fireblast709 Ill check if a playerteams == null and then ill add them to a team
Separate names with a comma.