java.lang.Object
studio.magemonkey.codex.mccore.scoreboard.Team

public class Team extends Object
A team used by the Scoreboard Manager
  • Constructor Details

    • Team

      public Team(String name)

      Constructor with a team name

    • Team

      public Team(String name, String prefix, String suffix)

      Constructor with a team name, prefix and suffix

      A null prefix or suffix will mean the team doesn't have one

      Parameters:
      name - team name
      prefix - team prefix
      suffix - team suffix
  • Method Details

    • setPrefix

      public void setPrefix(String prefix)

      Sets the prefix for the team

      Setting it to null will remove the prefix

      If the prefix is longer than 16 characters, it will be truncated down to 16 characters

      Parameters:
      prefix - new prefix
    • setSuffix

      public void setSuffix(String suffix)

      Sets the suffix for the team

      Setting it to null will remove the suffix

      If the suffix is longer than 16 characters, it will be truncated down to 16 characters

      Parameters:
      suffix - new suffix
    • getName

      public String getName()
      Returns:
      the team name
    • getPrefix

      public String getPrefix()
      Returns:
      the team's prefix or null if none
    • getSuffix

      public String getSuffix()
      Returns:
      the team's suffix or null if none
    • getId

      public int getId()
      Returns:
      ID assigned to the team