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

Help me !!! Please :(

Comments in 'Plugin Development' started by Seetch, May 27, 2015.

  1. Seetch
    Offline

    Seetch New Member

    Joined:
    Feb 5, 2015
    Posts:
    22
    Minecraft User:
    Seetch
    Guys, help me: how to function: $sender->sendMessage(TEXTFORMAT::AQUA . "TEXT"); to make 2 text with different colors?
  2. Seetch
    Offline

    Seetch New Member

    Joined:
    Feb 5, 2015
    Posts:
    22
    Minecraft User:
    Seetch
    Topic close, to understand: $sender->sendMessage(TEXTFORMAT::AQUA . "text1" .TextFormat::RED . "text2");

    Thank you for documentation!
  3. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    You can also use Chatcolors with §, like $sender->sendMessage("§bText 1 §4Text 2");
  4. shoghicp
    Offline

    shoghicp Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    436
    Plugins:
    14
    Minecraft User:
    shoghicp
    I told you before, that is not compatible with future changes and doesn't tell the people that reads your code what it does. Instead of §l§6, write TextFormat::BOLD . TextFormat::GOLD
    Creeperface and Legoboy0215 like this.
  5. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Oops.. Thanks tho

Share This Page

Advertisement