Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for team color #5974

Draft
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

chapterjason
Copy link

Information

Add support for team color in chat format.

Details

Proposed feature:

Adding the team color as a placeholder makes it possible to configure the color for a team without changing the format.

Environments tested:

OS: docker -> itzg/minecraft-server -> eclipse-temurin:21-jre -> Ubuntu 24.04.1 LTS

Java version: openjdk version "21.0.5" 2024-10-15 LTS

  • Most recent Paper version (1.XX.Y, git-Paper-BUILD)
  • CraftBukkit/Spigot/Paper 1.12.2
  • CraftBukkit 1.21.3

Demonstration:

Format in config file:

format: "{PREFIX}&r[{TEAMPREFIX}{TEAMCOLOR}{TEAMNAME}&r{TEAMSUFFIX}&r]<{NICKNAME}&r>{SUFFIX}&r: {MESSAGE}"

Chat commands (Except for adding the player to the team):

/team add esx "EssentialsX"
/team modify esx color gold
/team modify esx color dark_red

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant