Solved Chat color codes working weirdly

Discussion in 'Plugin Development' started by Alecsandro, Sep 13, 2024.

  1. Offline

    Alecsandro

    Hey guys.
    I'm creating a new plugin in 1.20.6 on a Pufferfish (Paper fork) server.
    When I try sending a message in chat via plugin to a player using color codes (such as §1, §a, etc...) strange symbols appear instead of the "§", but still coloring the next words.
    In other version, the symbol would not show up and would just color the chat.
    I've been trying to fix this but the only way was to use ChatComponents as shown (which I don't want to use for such simple messages).

    Have you got any solutions?

    Code:
    upload_2024-9-13_11-31-57.png

    Result:
    upload_2024-9-13_11-30-52.png

    Problem solved!
     

    Attached Files:

    Last edited by a moderator: Sep 14, 2024

Share This Page