Solved Need help with p.setBanned(true);

Discussion in 'Spigot Plugin Development' started by Pleasehelpmeiam1, May 26, 2016.

  1. For some reason, p.setBanned(true); has a strikethrough in setBanned, can someone help me with this? I have no idea why it's there.

    (Going to put how I fixed it soon :3
    #1 Pleasehelpmeiam1, May 26, 2016
    Last edited: May 27, 2016
  2. Add a deprecation statement
    • Agree Agree x 1
  3. Thank you
    • Friendly Friendly x 1
  4. use:

    Code (Java):
    BanList.addBan(String target, String reason, Date duration, String source);
    and to unban

    Code (Java):
    BanList.pardon(String target);
    • Agree Agree x 1
  5. Hey guys, I am a little bit confused here, alright so is there a way I can add the reason when a player types it? I could probably figure this out, I just would like to know if that's possible or not,

    Question 2:What do I put for String source

    #6 Pleasehelpmeiam1, May 27, 2016
    Last edited: May 27, 2016