More lines on kick message

Discussion in 'Plugin Development' started by PHILLIPS_71, Jul 26, 2013.

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

    PHILLIPS_71

    I'm wanting to add more lines to a kick message so it would be something like

    kicked from server!​
    Reason: Abuse ​
    but i don't know how to add more then 1 line.​
     
  2. Offline

    deery50

    PHILLIPS_71
    I am pretty certain that you can only physically have one line, sorry :(.
     
  3. Offline

    camji555

    Hope this will help...
    Code:
    player.kick("Line 1\nLine 2");
     
  4. Offline

    PHILLIPS_71

    deery50
    I have seen it, i have this for the first line but i don't understand what you are trying to say camji555

    Code:
    tarPlayer.kickPlayer(ChatColor.RED + "[Penalize] " + ChatColor.GRAY + "You have been kicked!");
     
  5. Offline

    rippin

    Use "\n" where you want the new line to be so anything after that will be on the second line.
     
  6. Offline

    deery50

    rippin
    Oh, I'm silly. I forgot that was a thing :p.
     
Thread Status:
Not open for further replies.

Share This Page