IPBan a user?

Discussion in 'Plugin Development' started by fafaffy, Feb 17, 2012.

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

    fafaffy

    How exactly would you IPBan a user? I made a plugin that bans anyone who uses the famous bot spammer "PWNAGE." I would like it to ban their proxies as well as their alts.

    edit:
    Code:
    plugin.getServer().banIP(event.getPlayer().getAddress().getHostName());
     
  2. Just use Essentials or something other.

    HomerBond005
     
  3. Offline

    Evangon

    You can't ban proxies. It's just impossible to ban them all. Just ban the well-known proxies, ban the IP and get it over with. Besides, getHostName() won't get the IP, remove .getHostName() leaving getAddress().
     
Thread Status:
Not open for further replies.

Share This Page