[REMOVED] null

Discussion in 'Spigot Plugin Development' started by pas5w0rd, May 11, 2017.

Thread Status:
Not open for further replies.
  1. null
     
    #1 pas5w0rd, May 11, 2017
    Last edited: May 11, 2017
  2. Not hard, it has already been defined as an example on the chat component api page, here's the example:

    Code (Text):

    TextComponent message = new TextComponent( "Hello " );
    message.setColor( ChatColor.RED );
    message.setBold( true );
    TextComponent world = new TextComponent( "world" );
    world.setColor( ChatColor.BLUE );
    message.addExtra( world );
    message.addExtra( "!" );
    player.sendMessage( message );
     
    will display "Hello world!"

    * Copyed from here: https://www.spigotmc.org/wiki/the-chat-component-api/
     
  3. null
     
    #3 pas5w0rd, May 11, 2017
    Last edited: May 11, 2017
Thread Status:
Not open for further replies.