New Line/Line Break in messages or chat

Discussion in 'Bukkit Help' started by MintTheFox, Nov 30, 2011.

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

    MintTheFox

    Is there a command or something I can use to force a new line in chat and messages? Im tying to setup automated announcements with this plugin and its a hassle getting them to look properly without having a command or something like "/n" to force a new line. Any help with this here?

    One of the messages im trying to send is:

    - '&eYou can check to see what kits you have access to by typing &2/kit&e.'

    I need a new line before typing...
     
  2. Offline

    douglas_srs

    I need something like that too but for a plugin, I'm trying to set a kick message with two lines but when I try to use \n it won't work!
     
  3. Offline

    obnoxint

    Just a quick suggestion:
    Code:
    public void sendMultilineMessage(Player player, String message){
      if (player != null && message != null && player.isOnline()){
        String[] s = message.split("\n");
        for (String m : s){
          player.sendMessage(m);
        }
      }
    }
    
     
    jackks likes this.
Thread Status:
Not open for further replies.

Share This Page