Solved § Symbol

Discussion in 'Plugin Development' started by Sweatyyyy, Sep 8, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Sweatyyyy

    I see people in their code using the § symbol instead of ChatColor.RED, I was wondering how you do it? Is it possible to do it on a english keyboard? I did it by copy pasting it from a wiki
     
  2. Offline

    Aqua

    It's an alt-code:
    press and hold alt, and do 0167 in that order.
    §
    Or copy/paste it.
     
  3. Offline

    Squid_Boss

    An example of using it would be:
    Code:java
    1. player.sendMessage("§4Hi");

    So you do §(0-9, a-f) Works like the "&" symbol on bukkit servers.
     
  4. Offline

    Sweatyyyy

    Aqua
    It dosnt seem to do anything? :3
     
  5. Offline

    Technius

    That's the way to input the Unicode version of it on Windows. You can hold alt and then press 21 or 0167. Otherwise, you can copy and paste it, or use one of these in your Strings:
    Code:
    §
    \u0167
    ChatColor.COLOR_CHAR
    
    Note: I recommend using the ChatColor enum constants instead of §. Minecraft specs change all the time!
     
  6. Offline

    Sweatyyyy

Thread Status:
Not open for further replies.

Share This Page