Solved Ban player with a Boolean

Discussion in 'Plugin Development' started by chikenlitle99, Mar 15, 2014.

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

    chikenlitle99

    Hi, I am creating a plugin but I want that if the boolean is activated, and a player say one word, will be banned for the server and send information as a "You have been banned for ..."

    I have this but, no know how to send the message "You have been banned for ..."
    Code:java
    1. if (getConfig().getBoolean("My_Boolean")){
    2. p.setBanned(true);
    3. }

    :D

    EDIT: This is an @EventHandler
     
  2. Offline

    ShadowLAX

    Garris0n likes this.
  3. Offline

    Mmarz11

    Garris0n likes this.
  4. Offline

    chikenlitle99


    I know it well, but what I mean is when to the player try to reconnect
     
  5. Offline

    ShadowLAX

    Garris0n likes this.
  6. Offline

    chikenlitle99

  7. Offline

    Garris0n

    The entire thing is self-explanatory.
     
  8. Offline

    chikenlitle99

    -_-
     
  9. Offline

    coaster3000

    Garris0n Actually its not very clear to me.
    Most of it is though. The only unclear thing is the target string and source string.

    Are those player names or are they UUID's in string form??
     
  10. Offline

    Garris0n

    Names.
     
  11. Offline

    coaster3000

    Garris0n Thanks for the info. This will help a bit :)
     
    chikenlitle99 likes this.
Thread Status:
Not open for further replies.

Share This Page