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


    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:

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


  3. Offline


    @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
    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.
  4. Offline


Thread Status:
Not open for further replies.

Share This Page