Inactive [ADMN] RangeBans v1.03 - Ban IP ranges, regions, providers and even countries! [1.2.x]

Discussion in 'Inactive/Unsupported Plugins' started by hqSparx, Dec 30, 2011.

  1. Offline

    hqSparx

    RangeBans - Ban IP Ranges;
    Version: v1.03

    This plugin was mainly made for offline-mode servers, where you cant really deal with dynamic IPs users.

    Features:
    • Ban IP Ranges, hostnames
    • Except nicknames from these bans or use them as whitelist
    • Support for 'wildcards' (ex. 192.168.*.*, 90.120.128-192.*)
    • Permissions
    BukkitDev
    Download RangeBans for 1.2.x!
    Source and progress

    Installation, Configuration:

    All you need is just to simply grab .jar file into /plugins folder.
    Additionally, u can set some values via config file (generated automatically):
    • broadcast-kicks: (true/false) Broadcast a message to operators player with banned IP range tries to join the server
    • broadcast-passes: (true/false) Broadcast a message to operators when player passes range ban due to an nickname exception
    • ban-msg: Message to show to banned player, supports colorizing
    • use-hostnames-as-whitelist: (true/false) Should plugin use hostname bans as whitelist?
    Bans and exceptions are stored in .txt files.

    Commands, screenshots:
    [​IMG]
    [​IMG]
    [​IMG]

    How to check somebody's IP range?
    https://apps.db.ripe.net/search/query.html
    For example, for inetnum: 192.168.128.0 - 192.168.192.255,
    correct command would be: /rb ban 192.168.128-192.*
    or simply /rb ban 192.168.128.0 - 192.168.192.255

    Permissions:
    • rb.* - full access
    • rb.reload - reload the plugin
    • rb.ban - ban and unban both IP Ranges and hostnames
    • rb.exception - add/remove exceptions
    • rb.check - check somebody's IP
    • rb.list - list bans/exceptions
    • rb.broadcast - receives message when a player is found on bans/exceptions list
    Changelog:

    Version 1.02
    • performance tweaks
    Version 1.01
    • fixes critical bug with wrong IP parsing
    Version 1.0
    • Permissions!
    • Feature to ban hostnames (ex. countries, providers - easier)
    • Added config option to use hostname bans as whitelist (ex. only whitelisted countries can join)
    • Updated to 1.1-R3, still compatible backwards
    • General code tweaks
    Show Spoiler
    Version 0.93
    • Added feature to check player's ip
    • Improved compatibility with other plugins
    Version 0.91
    • IP checking fix
    • support for more common X.X.X.X - X.X.X.X ip ranges format
    Version 0.9
    • First public release
     
  2. Offline

    md_5

    Approved
     
  3. Offline

    Taylor Bindon

    I.... Must.... use this!
     
  4. Offline

    SuperPyroManiac

    I still miss easyban :( It is more easy than this.
     
  5. Offline

    Giuseppe

    yeah verry cool
     
  6. Offline

    xFli3r

    I see how this can be useful :D
    I'm not personaly going to use it on my server but very nice!
     
  7. Offline

    beleg

    how can I ban a countrie?
     
  8. Offline

    hqSparx

    You have to manually find these ranges, for example on
    http://www.countryipblocks.net/country-blocks/ip-range-format/

    It may be hard to rewrite so many of these addresses into RangeBans format, so I'll be probably adding 'filter' feature in next release (or feature to automatically detect contries by hostname)

    //its done, you can now ban hostnames and contries easier
     
  9. Offline

    SilencShadoW

    Hey Guy,
    can u implement Phrases, for change the ban warning?
    and a way to see the IP of player X ingame?
    and /rb ban <nick> ... would be nice, so i not need 2 plugins ... :S
    and the command /rb list to see all banned users | ip's
    and maybe if a banned user want to login the ip ... from the user AND/OR the banned ip why he cant login

    And ur plugin is not xauth and job's friendly ^^
    Code:
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:94)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:46)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.Packet1Login.a(SourceFile:59)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:80)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:113)
    at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:129)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:265)
    at com.cypherx.xauth.listeners.xAuthPlayerListener.onPlayerJoin(xAuthPlayerListener.java:68)
    at com.cypherx.xauth.xAuth.createGuest(xAuth.java:270)
    at com.cypherx.xauth.xAuth.protect(xAuth.java:286)
    java.lang.NullPointerException
    15:59:16 [SEVERE] Could not pass event PLAYER_JOIN to xAuth
    
    
    Edit: What are the Permissions for that plugin? :eek:
     
  10. Offline

    hqSparx

    Hello, its already implemented, check \RangeBans\config.yml
    sure, but just IP or range (inetnum) aswell?
    I would have to implement inetnum detection first, will try
    planned for next release
    will test that and post fix
    currently none
     
  11. Offline

    SilencShadoW

    Thx for your fast answer! :D

    Both :D is better than not but IP is the needed one

    Is the ban for a user so hard? its enough if u just block his nick! bc if he rejoin i can check ip and ban him with ip, but i not want to ban ip instant ...

    permissions are needed ...
     
  12. Offline

    hqSparx

    there is already /ban nick in minecraft
    i dont get it :E

    sure, will implement in next release
     
  13. Offline

    SilencShadoW

    not if i got essentials and so on :O it blocks that ... ^^ and i want custom phrases and permissions are not working for vanilla :p
     
  14. Offline

    hqSparx

    I've just found an bug with comparing player's ip to bans list - posting fast hotfix

    RangeBans v0.91
    - IP checking fix
    - support for more common X.X.X.X - X.X.X.X ip ranges format
     
  15. Offline

    SilencShadoW

    Hey Guy,
    /rb ban 123.123.*.* is broken :( i nees to use 123.123.0.0-123.123.255.255 .... can u make 123.123.*.* oder 123.123.* work again?
     
  16. Offline

    hqSparx

    Sorry for that, reuploaded fixed version

    btw. I will be implementing requested features as soon as possible, but im kinda busy for next 2 days :(
     
  17. Offline

    SilencShadoW

    Can u remake your kick function a bit? :S ... so thats a bit earlyer? bc essentials make his "Welcome xxx on the server" and xauth want to teleport him, if it is a bit quicker or dunno how to program that, that all is ignored. Lile a normal ban system, your is a bit different ... dunno sry :S

    If u understand, plz reply ^^
     
  18. Offline

    hqSparx

    y, I had some problems with player_login event thats why I used player_join, but now I should be able to change that

    Done

    RangeBans 0.92
    • Improved compatibility with other plugins

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 22, 2016
  19. Offline

    xTripersx

    I have baned griefer, hacker from my server with IP 5.18.185.146. Later He Signed Into My profile with his other IP: 5.159.65.50.
    I dont't know how block him from the server and i use hamachi. griefer name is HaxOr. His name tells everything about him that hes Hacking.
     
  20. Offline

    hqSparx

    It may be difficult with hamachi since its not his 'external' IP Adress, just the one allocated by virtual network
     
  21. Offline

    SilencShadoW


    /rb ban 123.123.*.* is dont working again :D

    Code:
    18:38:01 [INFO] silencshadow [/93.230.107.217:51483] logged in with entity id 23868 at ([Freebuildi] 28943.53125, 68.0, 25176.84375)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:94)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:46)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.Packet1Login.a(SourceFile:59)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:80)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:88)
    at net.minecraft.server.ServerConfigurationManager.attemptLogin(ServerConfigurationManager.java:202)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.java.JavaPluginLoader$13.execute(JavaPluginLoader.java:349)
    at me.hqSparx.RangeBans.RBPlayerListener.onPlayerLogin(RBPlayerListener.java:26)
    at me.hqSparx.RangeBans.RBPlayerListener.checkByte(RBPlayerListener.java:15)
    at java.lang.Integer.parseInt(Integer.java:514)
    at java.lang.Integer.parseInt(Integer.java:493)
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    java.lang.NumberFormatException: For input string: ""
    18:38:01 [SEVERE] Could not pass event PLAYER_LOGIN to RangeBans
     
  22. Offline

    hqSparx

    hmm, on my server its working well
    this happens everytime You log in? Seems like server was unable to pass players IP to rangebans listener
     
  23. Offline

    SilencShadoW

    after i banned the ip ... i get this error ... i banned me :p /rb ban 93.230.*.*
     
  24. Offline

    hqSparx

    could I get list of your installed plugins?
     
  25. Offline

    SilencShadoW

    My isntalled Plugins are:
    Code:
            - VoxelSniper | 5.1
            - Spout | 644
            - CityWorld | 0.56
            - mcMMO | 1.2.07
            - IllegalName | 1.8
            - FalseBookExtra | 0.90alpha
            - PvPToggle | 0.5.0
            - AntiPub | 0.2
            - NoCheat | 2.24a
            - PluginList | 1.4
            - NoPortals | 0.4.5
            - WhoMode | 1.4
            - LagMeter | 1.4
            - FalseBookCore | 0.90alpha
            - WellWorld | 0.7
            - WorldEdit | 5.0
            - PermissionsEx | 1.17
            - Essentials | 2.7.2
            - LogBlockQuestioner | 0.02
            - IWarnYou | 1.5.2
            - AutoMessage | 1.5
            - iConomy | 6.0.8b
            - RangeBans | 0.92
            - FoundBoxx | 1.6.1.4
            - IPNotify | 1.0
            - xAuth | 2.0b4.3
            - FalseBookIC | 0.90alpha
            - FalseBookBlock | 0.90alpha
            - SkylandsPlus | 0.6
            - Permissions | 2.7.7
            - CraftBukkitUpToDate | 2.7.3
            - Backup | 1.8.4
            - WorldGuard | 5.4
            - SaveIt | 1.0
            - My Worlds | 1.33
            - LogBlock | 1.51
            - AntiGuest | 2.5.0
            - NoLagg | 1.56
            - EssentialsSpawn | 2.7.2
            - MyWarp | 2.0.1
            - WorldBorder | 1.5.0
            - LWC | 3.58
            - DeathTpPlus | 3.6.0.1597
            - Jobs | 2.6.0
            - Orebfuscator | 1.2.
            - OrebfuscatorSpoutBridge | 1.0.1
            - VanishNoPacket | 1.8.8
            - iChat | 2.4.3
    sry for that delay, i programmed a plugin to get the plugins with version .... ^^
     
  26. Offline

    hqSparx

  27. Offline

    SilencShadoW


    Got this error everytime! :eek: with any user ... not need to ban ... it cant get the ip on my server :\

    18:11:07 [INFO] [RangeBans] Warning! Couldn't load silencshadow's IP. Possibly plugins conflict.
     
  28. Offline

    hqSparx

    RangeBans 0.93

    • Added feature to check player's ip
    • Improved compatibility.. for real this time
     
  29. Offline

    toxuin

    Permissions! We request it!:)
     
  30. Offline

    Pr07o7yp3

    Ok, I'm using Easybans, but it's no longer updated.
    So, I've to use another plugin and I liked this but have a question!
    Has this plug work on MC 1.1?
    Has it work with MySQL?
     

Share This Page