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

Gray text

Comments in 'Plugin Development' started by Legomite, May 30, 2014.

  1. Legomite
    Offline

    Legomite Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    470
    Plugins:
    2
    Minecraft User:
    Legomite
    How to you make a plugin broadcast gray color text? This dosn't seem to work but this does.

    Not working
    PHP:
    $this->api->chat->sendTo(false"-100 coins!\n"$death);    
    Working
    PHP:
    $output .= "Test\n";
  2. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    add "/" before the texts
    Tuff likes this.
  3. Legomite
    Offline

    Legomite Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    470
    Plugins:
    2
    Minecraft User:
    Legomite
    Nevermind, figured it out.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Another method is send a raw packet (without sendChat, but with dataPacket(MessagePacket)) with \n in it.
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Another method is send a raw packet (without sendChat, but with dataPacket(MessagePacket)) with \n in it.

Share This Page

Advertisement