How do you ban a player now, respectively?

Discussion in 'Plugin Development' started by Are52Tap, Apr 21, 2014.

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

    Are52Tap

    How do you ban a player now, respectively?
    because now that
    Code:java
    1. player.setBanned(true);

    is Deprecated since 1.7.* updates.

    I would like to know and maybe some other people too who don't know how to. Thanks :)!
     
  2. Offline

    RawCode

    care to read javadocs about reasons of deprecation?
     
    Garris0n likes this.
  3. Offline

    beeselmane

    use the BanList and BanEntry classes
     
    Garris0n and Are52Tap like this.
  4. Offline

    Are52Tap

    Yes, I do know that Deprecation means "there is a better way to do it".
    I would like to know the "best way" or the "current way" of doing so since this method is Deprecated now.
     
  5. Offline

    Zwander

    It may be that there is no alternative yet.
    Yet.
    Bukkit methods are often depreciated as a warning, stating that they will be removed in future, rather than that there is a better alternative already.
    C:
     
    Are52Tap likes this.
  6. Offline

    Are52Tap

    Thanks I will add the
    Code:java
    1. @SuppressWarnings("deprecation")

    for the deprecation. Thanks!:)
     
  7. Offline

    Zwander

Thread Status:
Not open for further replies.

Share This Page