Solved my plugins help command

Discussion in 'Plugin Development' started by TRIPL3_CATS, Feb 14, 2015.

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

    TRIPL3_CATS

    I need to know how to make a command that sends a message to the player. I know how to send a message (sender.sendMessage(ChatColor.Blah + "Message") I don't know how to add multiple lines, like at the top it says === FakeChat Commands ===
    next line: /fakejoin <command description>
    next line: /fakeleave <command description>
    next line: /fakemsg <command description>

    Please Help!
    - Tripl3_cats
     
  2. Offline

    1Rogue

    Use the newline character: \n
     
  3. Offline

    TRIPL3_CATS

    Thanks

    Well, actually, do I do \n in the message? Like "=== FakeChat Commands ===\n"

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 13, 2016
  4. Offline

    1Rogue

    Sure! It's a character, you can put it anywhere in a string you want.
     
  5. Offline

    Evaluations

    You can also do this:


    sender.sendMessage(ChatColor.GRAY + "yo");
    sender.sendMessage(ChatColor.RED + "These will be on separate lines");
    sender.sendMessage(ChatColor.RED + "!@");
     
Thread Status:
Not open for further replies.

Share This Page