Skip to main content

Documentation Index

Fetch the complete documentation index at: https://velas.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Team represents a Minecraft scoreboard team with configurable visual and gameplay properties. Obtain one via scoreboard.team(String). Most setters return this for fluent chaining.

Visual properties

MethodReturnsDescription
getName()StringThe team’s name
setColor(TeamColor)TeamSet the team color
getColor()TeamColorGet the current color
setPrefix(String)TeamSet the chat prefix
getPrefix()StringGet the current prefix
setSuffix(String)TeamSet the chat suffix
getSuffix()StringGet the current suffix

Gameplay rules

MethodReturnsDescription
setFriendlyFire(boolean)TeamEnable/disable player friendly fire
isFriendlyFireEnabled()booleanCurrent friendly fire state
setEntitiesFriendlyFire(boolean)TeamEnable/disable entity friendly fire
isEntitiesFriendlyFireEnabled()booleanCurrent entity friendly fire state
setCanSeeFriendlyInvisibilities(boolean)TeamEnable/disable seeing invisible teammates
canSeeFriendlyInvisibilities()booleanCurrent state
setTeamCollisionRule(TeamCollisionRule)TeamSet collision rule
getCollisionRule()TeamCollisionRuleCurrent collision rule
setNameTagVisibility(TeamNameTagVisibility)TeamSet name tag visibility
getNameTagVisibility()TeamNameTagVisibilityCurrent name tag visibility

Member management

MethodReturnsDescription
addPlayer(Player)TeamAdd a player to the team
addPlayer(Player, AddMemberToTeamEvent.Reason)TeamAdd player with explicit reason
removePlayer(Player)TeamRemove a player from the team
addEntity(Entity)TeamAdd an entity
removeEntity(Entity)TeamRemove an entity
hasPlayer(Player)booleanCheck if player is on this team
hasEntity(Entity)booleanCheck if entity is on this team

Example

Team blue = scoreboard.team("blue")
    .setColor(TeamColor.BLUE)
    .setPrefix("§9[Blue] ")
    .setSuffix(" §9●")
    .setFriendlyFire(false)
    .setTeamCollisionRule(TeamCollisionRule.FOR_OWN_TEAM)
    .setNameTagVisibility(TeamNameTagVisibility.ALWAYS)
    .addPlayer(player);