Ban a player for a reason

Discussion in 'Plugin Development' started by Vinceguy1, Aug 5, 2012.

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

    Vinceguy1

    I can do
    player.setBanned(true);
    player.kickPlayer("REASON");

    They will get kicked for reason but if they try and rejoin it will say
    Banned from server
    Reason: Banned by operator!
     
  2. Offline

    CorrieKay

    you have to keep track of the reason, then whenever they try to join, deny it with that reason.
     
  3. Offline

    Vinceguy1

    Ok.
     
  4. Offline

    tommykins20

    I notice that the default message has a line in between, but when I try to split it with a line using \n it just makes this weird square thing where I put the \n.
     
  5. Offline

    CorrieKay

    i dont think its possible to kick with multiple lines in the reason.
     
  6. Offline

    tommykins20

    Okay, the reason is probably separated client side. Thanks though :)
     
Thread Status:
Not open for further replies.

Share This Page