Errors in the colors of regions

Discussion in 'WorldGuard' started by mundo-minecraft, Sep 21, 2018.

  1. mundo-minecraft

    mundo-minecraft New Member

    Hello, When using frag greeting and farewell the colors do not work correctly. Example in the .yml file:

    greeting: '&3Has entrado al metro-oeste' "the color does not work and the text comes out with &3 in front visible to all players"

    farewell: '&bHas salido del metro-oeste!!' "the text comes out with color but the one that corresponds to &9"

    Thx.
  2. PseudoKnight

    PseudoKnight Well-Known Member Developer

    WorldGuard doesn't use the same color codes that you might expect. Curiously I can't find the list in the documentation right now, but this is mentioned in the forums a few times.

    &r = red
    &R = dark red
    &y = yellow
    &Y = orange
    &g = green
    &G = dark green
    &c = cyan
    &C = dark cyan
    &b = blue
    &B = dark blue
    &p = purple
    &P = dark purple

    &0 = black
    &1 = dark gray
    &2 = gray
    &w = white

    &k = magic
    &l = bold
    &m = strikethrough
    &n = underline
    &o = italic
    &x = reset

    So six of them are the same, the rest are different.


    In addition, it has some variable replacements:

    %name% = player name
    %id% = player UUID
    %online% = how many players are online
    %world% = player's current world
    %health% = player's current health
    Last edited: Sep 22, 2018
  3. mundo-minecraft

    mundo-minecraft New Member

    Until 1.12 use these colors, but I see that they have changed. Thank you.
  4. PseudoKnight

    PseudoKnight Well-Known Member Developer

    I looked closer and there's more to it. There was a change, but the Bukkit color codes work in command inputs. The problem is that you're probably manually editing the colors in the yaml config. The above values will work, but I suggest if you're going to manually edit the colors directly, use the standard Minecraft color codes with section signs.