Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

Add support for team color

Open chapterjason opened this issue 1 year ago • 0 comments

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
  • [x] 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

chapterjason avatar Nov 24 '24 03:11 chapterjason