Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to make colored text?

Comments in 'Plugin Development' started by abler98, Nov 19, 2014.

  1. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    No. Do it every session.
  2. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    ?
  3. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    When any player join to the server, use one of the events that handle that function (PreLogin, Login, etc...) to modify that function.
    But remember the "/reload" case, so when your plugin is enabled, remember to get all the players and modify the function for each one:
    PHP:
    public function onEnable(){
         foreach(
    $this->getServer()->getOnlinePlayers() as $player){
              
    $player->setRemoveFormat(false);[/INDENT]
         }
    }
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    And set true on disable to get your plugin approved in the review.
    iksaku likes this.
  5. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Done for EssentialsPE
  6. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    yup just tested, doesnt work :( BlockLauncherPro 1.8 still doesnt recognize colored messages :/
  7. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    :/ maybe using the code instead of the sign?

    Instead of using Text format (or the sign), use the codes:
    followed by the color code (1-9, a-f, k-o & R).

    For example:
    §a = \u00A7a
    §8 0 \u00A78
    ...
    EvolSoft and PEMapModder like this.
  8. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    What is different from typing the section sign directly, though?
  9. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    I was looking at BlockLauncher source and it directly search for the symbol code :p it may help
    TonyDroidd likes this.
  10. Dalton
    Offline

    Dalton Banned

    Joined:
    Jul 7, 2014
    Posts:
    38
    Minecraft User:
    DALTONTASTIC
    All of our plugins have ColorChat enabled as long as you are running BlockLauncher :) It's super pretty.

    Yes.. This is the type of stuff that peaks my interest.
  11. xFlare
    Offline

    xFlare Active Member Plugin Developer

    Joined:
    Sep 28, 2014
    Posts:
    199
    Plugins:
    1
    Minecraft User:
    xFlare
    BTW thanks dalton for giving me a custom server ip :p
  12. PixelGuy75
    Offline

    PixelGuy75 Notable Member Plugin Developer

    Joined:
    Feb 9, 2014
    Posts:
    316
    Plugins:
    2
    Minecraft User:
    PixelGuy75
    How?
  13. Dalton
    Offline

    Dalton Banned

    Joined:
    Jul 7, 2014
    Posts:
    38
    Minecraft User:
    DALTONTASTIC
    I absolutely adore my fellow MCPE community members, and love to help people out! What is your EPICM.CO address?

Share This Page

Advertisement