HomeJavaModsPlayerWaypointColors
PlayerWaypointColors
ModsJava

PlayerWaypointColors

by hyperkids · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.11–26.1.2 · Paper⬇ Download for 1.21.6–1.21.10 · Paper⬇ Download for 1.21.11–26.1.2 · Spigot⬇ Download for 1.21.6–1.21.10 · Spigot
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Overview

PlayerWaypointColors lets players set their own waypoint colors and lets admins set colors for other players. Optional PlaceholderAPI integration for automatic color assignment on join, exporting a player's current color to other plugins (chat, scoreboards, etc.), and configurable server defaults.

Features

Compatibility

Installation

  1. Download the latest PlayerWaypointColors.jar.
  2. Place it in your server's plugins folder.
  3. (Optional) Install PlaceholderAPI if you want PAPI features.
  4. Start or reload your server.

Commands & Permissions

Command Description Permission Default
/pwc help Show help message playerwaypointcolor.help all
/pwc set <color|hex> [#hexcode] Set your own waypoint color playerwaypointcolor.self OP
/pwc setother <player> <color|hex> [#hexcode] Set another player's waypoint color playerwaypointcolor.others OP
/pwc get Get your own waypoint color playerwaypointcolor.self OP
/pwc get <player> Get another player's waypoint color playerwaypointcolor.others OP
/pwc reset Reset your own waypoint color playerwaypointcolor.self OP
/pwc reset <player> Reset another player's waypoint color playerwaypointcolor.others OP

Configuration

The plugin creates a config.yml file on first run. Existing files are upgraded in place when new options are added.

Example config:

placeholderapi:
  auto-apply-on-join: false
  variable: ""
placeholders:
  formats:
    minimessage: "<#{HEX}>"
    hex: "#{HEX}"
    raw: "{HEX}"
    legacy: "&x&{R1}&{R2}&{G1}&{G2}&{B1}&{B2}"
default-color: ""
default-color-force: false

PlaceholderAPI Integration

PWC integrates with PlaceholderAPI in both directions: it can read a placeholder to assign a color on join, and it exposes its own placeholder so other plugins can read each player's current color.

Reading colors from a placeholder (auto-apply on join)

Set variable in config.yml to a placeholder (e.g., %luckperms_meta_color%) that returns a hex code in the format #00FF00 or 00FF00.

The easiest setup uses LuckPerms meta:

  1. Set the permission meta.color.#FF0000 on a group
  2. Set auto-apply-on-join to true
  3. Set variable to %luckperms_meta_color%
  4. Save config.yml and restart your server

Alternatively, use the PlaceholderAPI String expansion (particularly %string_replaceCharacters_<configuration>_<string>%) to coerce another placeholder into a valid hex code.

Exposing a player's current color to other plugins

PWC registers %pwc_color_<format>% where <format> is any key under placeholders.formats in config.yml. Out of the box:

Placeholder Returns Example
%pwc_color_minimessage% MiniMessage hex tag <#FF0000>
%pwc_color_hex% hex with leading # #FF0000
%pwc_color_raw% bare 6-character hex FF0000
%pwc_color_legacy% Spigot legacy color codes &x&F&F&0&0&0&0

Add your own keys in config.yml to support whatever syntax your chat or scoreboard plugin needs. Templates can use these variables (case-sensitive):

Example: a chat plugin using <#hex> MiniMessage syntax can format messages like %pwc_color_minimessage%<player_name></...> to color player names with each player's chosen waypoint color.

If a player hasn't picked or been assigned a color, the placeholder returns an empty string regardless of the format requested.

Default Color on Join

Set default-color to a hex value (e.g. 00FF00) to apply that color to players who don't already have one. Leave empty to disable.

default-color-force:

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more