Stuck on my Custom Banned message

Discussion in 'Plugin Development' started by DominicGamesHD, Mar 26, 2016.

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

    DominicGamesHD

    Okay so when I have got the basics down done.

    But when I try to join it just displays reason banned by an operator

    But I want it to be displayed with

    Banned by:
    Reason:

    with a config.yml a snippet of code would be good.
     
  2. Offline

    Assist

  3. Offline

    DominicGamesHD

  4. Offline

    StarRocket

    @DominicGamesHD If you are wanting to use the config.yml to store who is banned by who and for what reason, I would use a PlayerLoginEvent and manually check if the player is banned and if so then use something like
    Code:
    if (insert check if player is banned here)  {
        e.disallow(PlayerLoginEvent.Result.KICK_OTHER, insert msg here);
    }
    But the other way suggested by @Assist would likely be easier and more efficient.
     
  5. Offline

    DominicGamesHD

Thread Status:
Not open for further replies.

Share This Page