AdvancedBan Auto Ban Addon 1.0.3

Automatically ban alts of a banned account

  1. james090500
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.16
    Source Code:
    https://github.com/james090500/AdvancedBanAutoBan
    Contributors:
    mov51
    [​IMG]

    This plugin is an addon for AdvancedBan.

    Description

    This plugin automatically bans ALT accounts of users previously banned for a length of time defined in the config and with a custom message which can also be changed in the config.

    It does this by temporarily storing the IP address of a banned user and banning all players which join with the same IP address for an amount of time defined in the config. After this time has surpassed the IP will be allowed access to the server again and any ALTs will remain banned.

    Installation

    This plugin can be installed on either Bungee or Spigot. Just drop it in the plugins folder with AdvancedBans and you're good to go.

    Set up

    This plugin needs no additional setup and will work right out the box. There is a config file with a few changes here:

    Code (Text):

    ##########################################################################
    #                                                                        #
    #              AdvancedAutoBan by James090500                            #
    #                                                                        #
    ##########################################################################

    # The user which bans the players
    # MAX 16 CHARACTERS!
    ban_user: "Auto Ban"

    # The duration a player should be banned for (-1 = Permanent)
    ban_duration: -1

    # The amount of seconds the plugin should check for ALT accounts under the same IP
    # default: 600
    ban_period: 600

    # The message which should be received for an ALT joining under the same IP as a previously
    # banned account
    # default: "Evading punishment of an alt (%banned_player%)"
    ban_message: "Evading punishment of an alt (%banned_player%)"
     

    Commands
    Everything else is automatic with /ban. But you can use /autoban to reload the config

    Permissions
    If a user can /ban on your server then this plugin will automatically hook into it.
    autoban.admin - Reload Config
    autoban.bypass - Prevent being banned

    Disclaimer

    This plugin is extremely early beta, so feedback and bug reports are appreciated!

    This plugin is only so reliable. It will cause issues if multiple players are on the same IP such as siblings playing on the server as 2 different accounts. There isn't an easy way to solve this but I am looking into other ways.
    FlosnPvP and ItzSomebody like this.

Recent Reviews

  1. Tamino
    Tamino
    1/5,
    Version: 1.0.3
    Cant unban players...... They get banned again after unbanning

    ——————————— ———————————
  2. WesleyH51
    WesleyH51
    2/5,
    Version: 1.0.3
    As the previous review also says - the plugin is bugged right now. Please fix this as I think this is a really good plugin idea :)

    [09:39:06 ERROR]: Could not pass event PlayerLoginEvent to AdvancedBanAutoBan v1.0.3
    java.lang.NullPointerException: null
    at com.james090500.AdvancedAutoBan.Bukkit.Listeners.BanListenerBukkit.getAddress(BanListenerBukkit.java:86) ~[?:?]
    at com.james090500.AdvancedAutoBan.Bukkit.Listeners.BanListenerBukkit.onConnect(BanListenerBukkit.java:69) ~[?:?]
    at com.destroystokyo.paper.event.executor.StaticMethodHandleEventExecutor.execute(StaticMethodHandleEventExecutor.java:38) ~[patched_1.16.5.jar:git-Airplane-"87d4a17"]
    at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76) ~[patched_1.16.5.jar:git-Airplane-"87d4a17"]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.5.jar:git-Airplane-"87d4a17"]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.5.jar:git-Airplane-"87d4a17"]
    at net.minecraft.server.v1_16_R3.PlayerList.attemptLogin(PlayerList.java:760) ~[patched_1.16.5.jar:git-Airplane-"87d4a17"]
    at net.minecraft.server.v1_16_R3.LoginListener.c(LoginListener.java:169) ~[patched_1.16.5.jar:git-Airplane-"87d4a17"]
    at net.minecraft.server.v1_16_R3.LoginListener.tick(LoginListener.java:87) ~[patched_1.16.5.jar:git-Airplane-"87d4a17"]
    at net.minecraft.server.v1_16_R3.NetworkManager.a(NetworkManager.java:583) ~[patched_1.16.5.jar:git-Airplane-"87d4a17"]
    at net.minecraft.server.v1_16_R3.ServerConnection.c(ServerConnection.java:163) ~[patched_1.16.5.jar:git-Airplane-"87d4a17"]
    at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1568) ~[patched_1.16.5.jar:git-Airplane-"87d4a17"]
    at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:421) ~[patched_1.16.5.jar:git-Airplane-"87d4a17"]
    at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1388) ~[patched_1.16.5.jar:git-Airplane-"87d4a17"]
    at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1120) ~[patched_1.16.5.jar:git-Airplane-"87d4a17"]
    at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:290) ~[patched_1.16.5.jar:git-Airplane-"87d4a17"]
    at java.lang.Thread.run(Thread.java:834) [?:?]
  3. NDTurtle
    NDTurtle
    3/5,
    Version: 1.0.3
    Whenever someone joins or leaves the server this appears:

    [13:51:05 ERROR]: Could not pass event PlayerLoginEvent to AdvancedBanAutoBan v1.0.3
    java.lang.NullPointerException: null
    at com.james090500.AdvancedAutoBan.Bukkit.Listeners.BanListenerBukkit.getAddress(BanListenerBukkit.java:86) ~[?:?]
    at com.james090500.AdvancedAutoBan.Bukkit.Listeners.BanListenerBukkit.onConnect(BanListenerBukkit.java:69) ~[?:?]
    at com.destroystokyo.paper.event.executor.StaticMethodHandleEventExecutor.execute(StaticMethodHandleEventExecutor.java:38) ~[patched_1.16.5.jar:git-Paper-505]
    at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.5.jar:git-Paper-505]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.5.jar:git-Paper-505]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.5.jar:git-Paper-505]
    at net.minecraft.server.v1_16_R3.PlayerList.attemptLogin(PlayerList.java:679) ~[patched_1.16.5.jar:git-Paper-505]
    at net.minecraft.server.v1_16_R3.LoginListener.c(LoginListener.java:149) ~[patched_1.16.5.jar:git-Paper-505]
    at net.minecraft.server.v1_16_R3.LoginListener.tick(LoginListener.java:67) ~[patched_1.16.5.jar:git-Paper-505]
    at net.minecraft.server.v1_16_R3.NetworkManager.a(NetworkManager.java:385) ~[patched_1.16.5.jar:git-Paper-505]
    at net.minecraft.server.v1_16_R3.ServerConnection.c(ServerConnection.java:145) ~[patched_1.16.5.jar:git-Paper-505]
    at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1387) ~[patched_1.16.5.jar:git-Paper-505]
    at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:377) ~[patched_1.16.5.jar:git-Paper-505]
    at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1214) ~[patched_1.16.5.jar:git-Paper-505]
    at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1002) ~[patched_1.16.5.jar:git-Paper-505]
    at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:175) ~[patched_1.16.5.jar:git-Paper-505]
    at java.lang.Thread.run(Thread.java:834) [?:?]
  4. peanutismo
    peanutismo
    5/5,
    Version: 1.0.3
    PLease 1.8 i want to use it i have pvp server that is on 1.8 please thanks i love it
  5. LaserSlimeHD
    LaserSlimeHD
    4/5,
    Version: 1.0.2
    This is a really good solution against the average 9 year old cheater, but I would really like to customize the ban duration in config as this can rarely cause false positives if two players in the same local network and one of them gets banned, because they share the same ip.
    1. james090500
      Author's Response
      i have released an update for this
  6. imAverageNoob
    imAverageNoob
    5/5,
    Version: 1.0.2
    This is exactly what you need for hackers. With AntiVPN, this plugin works very well. Recommended for every AB user.
  7. skywalker0707
    skywalker0707
    5/5,
    Version: 1.0.2
    I love this addon its very cool becouse i use it wen i permanently ban a user for hacking all their alts are temporarly banned for 24h
  8. FabianAdrian
    FabianAdrian
    5/5,
    Version: 1.0.2
    Works as expected! It's simple, but it does exactly what it promises. I would recommend this for every AB user.
  9. kacperleague9
    kacperleague9
    5/5,
    Version: 1.0.2
    Other reviews are Huh. Damn it's awesome. Thanks for making it owo. Do 80 words maybe
  10. omermarvel
    omermarvel
    4/5,
    Version: 1.0.1
    This plugin makes normal ban into IP ban is it true? what is the difference btw this plugin and ip ban?
    1. james090500
      Author's Response
      Once a users IP changes they will still be able to join again. Most IP's change in 24 hours. This plugin bans alts of users who try to join with the same IP. So even if the IP changes the account is still banned.