Arranging chat messages in a list

Discussion in 'Plugin Development' started by justin_393, Mar 2, 2014.

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

    justin_393

    Hi, I'm making a /vote plugin that will list the URLS in a list. Yes, I know this is a very simple code, but I want to know how to make them appear in a list such as
    -
    -
    -
    instead of one line. Here is my code.
    Code:java
    1. public boolean onCommand(CommandSender sender, Command command,
    2. String label, String[] args) {
    3. sender.sendMessage(ChatColor.YELLOW +"You can vote for us daily at: "
    4. + ChatColor.GREEN + "[url]http://goo.gl/4tj7YS[/url]"
    5. + ChatColor.GREEN + "[url]http://goo.gl/MKV5CB[/url]");
    6. return true;
    7. }
     
  2. Offline

    SuperOmegaCow

    justin_393
    player.sendMessage("first message");
    player.sendMessage("decond message");
    player.sendMessage("third message");
     
  3. Offline

    justin_393

    Nevermind, figured it out.

    SuperOmegaCow Yeah, I did that, thanks anyway lol

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  4. Don't forget to mark the thread as solved! :p
     
Thread Status:
Not open for further replies.

Share This Page