Development Assistance setBanned depreciated?

Discussion in 'Plugin Help/Development/Requests' started by tytwining, Jan 10, 2015.

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

    tytwining

    What is the new way to ban players? I've looked and can't seem to find it.
     
  2. Offline

    Experminator

    The method 'setBanned()' does work.
    And the other way, it is maybe a bit difficult to use.

    Other way to ban in steps:
    1. Create a file (Using the plugin itself) called for example: 'banned.yml'.
    2. Use a PlayerLoginEvent and check if banned.yml contains playername, playeruuid or IP. (Does not matter).
    3. If banned.yml contains player then cancel the login, and give them a message with for example: 'You are banned!'.

    If it does work, then say it.
    Tag me or pm me, if you want my help.

    Greeting,
    Ronald.
     
  3. Offline

    teej107

  4. Offline

    Experminator

    @teej107 BanList#addBan() is pretty nice to use, because it have time support that is really useful in ban plugins.
     
Thread Status:
Not open for further replies.

Share This Page