Inactive [GEN/SEC] Advanced Bans v0.4: Temporary bans [812]

Discussion in 'Inactive/Unsupported Plugins' started by kyku, May 11, 2011.

  1. Offline

    kyku

    [tnt] Advanced Bans - more control [tnt]
    Version: 0.4

    More advanced control ban. Allows temporary bans, bans once the nickname and IP and ban reasons.

    Features:
    • Ban player
    • Unban player
    • Temporary bans (in minutes)
    • Reasons for the ban
    • Left time for unban in kick reason
    • "Welcome back" message (after unban)
    • Ban both nickname and IP (good for offline servers)
    • Permissions or OP
    • Console support
    • Configuration!
    • Lightweight
    • IP History (ban offline player on ip) (only MySQL Support for now) New
    • MySQL SUPPORT New
    Commands*:


    • /bann <nick> [time in minutes] [reason...] - ban player (if player is offline, plugin will use ip history) (example: /bann kyku 15 Spam)
    • /unbann <nick> - unban player (example: /unbann kyku)
    • /bannip <ip address> [time in minutes] [reason...] - ban player on ip AND NAME (it use ip history) (example: /bannip 127.0.0.1 60 Spam)
    • /unbannip <ip address> - unbanip player (example: /unbann 127.0.0.1)
    • /kickk <nick> [reason] - kick player (example: /kickk kyku spam)
    * /bann or /ban depending on the choice




    Configuration:


    Code:
    Advanced Bans:
        Strings:
            Unban broadcast: '&RED;Admin: &ANAME; unban &TNAME;.'
            Kick:
                broadcast: '&RED;Admin: &ANAME; kicked &TNAME;. Reason:&REASON;.'
                kickmsg: '&RED;You have been kicked! Reason:&REASON;.'
            Ban:
                t+r-broadcast: '&RED;Admin: &ANAME; has banned &TNAME; for &TIME;min.
                    Reason:&REASON;.'
                perm-kickmsg: '&RED;You have been banned from this server.'
                only time-broadcast: '&RED;Admin: &ANAME; has banned &TNAME; for &TIME;min.'
                only time-kickmsg: '&RED;Banned for &TIME; min.'
                t+r-kickmsg: '&RED;Banned for &TIME;min. Reason:&REASON;.'
                perm-broadcast: '&RED;Admin: &ANAME; has banned &TNAME;.'
            Join:
                Banned reason-left: '&RED;Banned! Reason:&REASON; (Left: &LEFT;min.)'
                Welcome msg: '&GREEN;You have been unbanned. Welcome back!'
                Banned IP: '&RED;Your IP has been banned.&WHITE; Do not change nickname!'
                Banned reason: '&RED;You have been banned from this server. Reason:&REASON;.'
            Standard reason: ' None'
            Error:
                No access: '&RED;You don''t have permissions'
                Player is offline: '&RED;This player is offline'
        MySQL:
            Use: false
            User: username
            Port: 3306
            Host: localhost
            Database: minecraft
            Password: password
            table: ab_list
            table history: ab_history
        Settings:
            Ban nickname + IP: true
            Welcome message: true
            Broadcast kick msg: true
            Broadcast ban msg: true
            Use IP history: true
            Broadcast unban msg: true
    
    Permissions - advbans.<command>

    • advbans.bann - allow use /bann <nick> [time] [reason]
    • advbans.bannip - allow use /bannip <IP ADDRESS> [time] [reason]
    • advbans.unbannip -allow use /unbannip <IP ADDRESS>
    • advbans.unbann - allow use /unbann <nick>
    • advbans.kickk - allow use /kickk <nick> [reason]
    or (if you use an alternative plugin)
    • advbans.ban - allow use /bann <nick> [time] [reason]
    • advbans.banip - allow use /bannip <IP ADDRESS> [time] [reason]
    • advbans.unbanip -allow use /unbannip <IP ADDRESS>
    • advbans.unban - allow use /unbann <nick>
    • advbans.kick - allow use /kickk <nick> [reason]
    TODO:


    • ban offline player
    • banip / unbanip
    • configuration
    • logs
    • web panel + banlist
    • MySQL
    • command kick
    Screen:


    Show Spoiler

    [​IMG]


    Download:

    REMOVE CONFIG BEFORE UPDATE!

    MySQL Connector (Put in base folder, where craftbukkit)
    Advanced Bans v0.4 (CB: 766-798) - New (Commands: /bann, /bannip, /kickk, /unbann, unbannip)
    Advanced Bans v0.4 (2) (CB: 766-798) - New (Commands: /ban, /banip, /kick, /unban, unbanip)

    Advanced Bans v0.3 (CB: 766)

    Source code in jar (v0.4+)..

    Changelog:

    Version 0.4:
    • MySQL
    • IP History (Only MySQL support!)
    • New commands: /bannip, /unbannip (Only MySQL support!)
    • Fixed some bugs
    Version 0.3:


    • Configuration!
    • Ban offline players work
    • Kick command
    • Logs
    • Fixed some bugs
    Version 0.2-beta:


    • Fixed some bugs
    Version 0.1-beta:


    • Initial release
     
  2. Offline

    ExplosiveBacoN

    lets say I ban a ip, and somone joins with a different name on the same ip, will it ban the new name, or vice-versa?
     
  3. Offline

    kyku


    yes, but only if
    Code:
    Settings: Ban nickname + IP: true

    If you would disable it, you can change it to false
    Code:
    Ban nickname + IP: false


    I will add this, but now i have broken graphic card and my pc don't work so good ;s
    In a few days i will make update

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  4. Offline

    anon

    Thanks :D
     
  5. Offline

    Jan Tojnar

    Is thiss compatible with RB 803? I use advancedbans 0.4 (2) and it throws up an error on player login.
    Code:
    2011-05-24 17:57:45 [INFO] Someone [/someip:3684] logged in with entity id 81106 at (100.5, 78.62000000476837, 336.5)
    2011-05-24 17:57:45 [SEVERE] Could not pass event PLAYER_JOIN to AdvancedBans
    java.lang.NullPointerException
    	at pl.kyku.AdvancedBans.getConnection(AdvancedBans.java:915)
    	at pl.kyku.AdvancedBansPluginPlayerListener.onPlayerJoin(AdvancedBansPluginPlayerListener.java:41)
    	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:243)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    	at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:94)
    	at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:96)
    	at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:74)
    	at net.minecraft.server.Packet1Login.a(SourceFile:43)
    	at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    	at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
     
  6. Offline

    6y7t8h

    I would like to request a feature, change the time from minutes to days, since I think banning in minutes is too lenient.
     
  7. Offline

    6y7t8h

    anyone with me? :|
     
  8. Offline

    Tfs Halo

    i think minutes are fine... since u can ban for like 5 hours or something :/

    banning for days is kinda a lot..
     
  9. Offline

    Kahl

    Is this working with 818?
     
  10. Offline

    fyrus12345

    Does it support Permissions 3.0?
     
  11. Offline

    Ratchet

    i'm getting:

    Code:
    2011-06-02 04:49:32 [SEVERE] Could not pass event PLAYER_LOGIN to AdvancedBans
    java.lang.NullPointerException
        at pl.kyku.AdvancedBans.getConnection(AdvancedBans.java:915)
        at pl.kyku.AdvancedBansPluginPlayerListener.onPlayerLogin(AdvancedBansPluginPlayerListener.java:140)
        at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:313)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:183)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:82)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-02 04:49:32 [INFO] sunwind [/81.97.116.77:57330] logged in with entity id 708 at (402.5, 120.0, 423.5)
    2011-06-02 04:49:32 [SEVERE] Could not pass event PLAYER_JOIN to AdvancedBans
    java.lang.NullPointerException
        at pl.kyku.AdvancedBans.getConnection(AdvancedBans.java:915)
        at pl.kyku.AdvancedBansPluginPlayerListener.onPlayerJoin(AdvancedBansPluginPlayerListener.java:41)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:243)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:123)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:96)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  12. Offline

    Sphex

    Please update to 819
     
  13. Offline

    l104693

    How do I ban people permanently WITH a reason?
    When I typ:"/ban player griefing" It doesn't work.
    And when I typ "/ban player 0 griefing" It's like kicking someone...
     
  14. Offline

    Kahl

    The command is /bann
     
  15. Offline

    Ratchet

    yes, please! :(
     
  16. Offline

    Tfs Halo

    i rather have it as 818...

    Don't abandon this plugin! we need this for offline servers :(

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  17. Offline

    skater40165

    Ok I must be missing something here if I want to permanently ban a player I use the /ban not /bann command right? If so the issue I get is command cook controls the /ban command so it doesnt get logged by the database.
     
  18. Offline

    kyku

    Show your config and try run it without mysql
     
  19. Offline

    Jan Tojnar

    This is my config:
    Show Spoiler
    Code:
    Advanced Bans:
        Strings:
            Unban broadcast: '&RED;* &ANAME; odbanoval &TNAME;.'
            Kick:
                broadcast: '&RED;* &ANAME; vykopnul &TNAME;. Duvod:&REASON;.'
                kickmsg: '&RED;Byl jsi vykopnut! Duvod:&REASON;.'
            Ban:
                t+r-broadcast: '&RED;* &ANAME; byl zabanovan &TNAME; na &TIME; min.
                    Duvod:&REASON;.'
                perm-kickmsg: '&RED;Byl jsi zabanován.'
                only time-broadcast: '&RED;* &ANAME; zabanoval &TNAME; na &TIME; min.'
                only time-kickmsg: '&RED;Zabanován na &TIME; min.'
                t+r-kickmsg: '&RED;Zabanován na &TIME; min. Duvod:&REASON;.'
                perm-broadcast: '&RED;* &ANAME; zabanoval &TNAME;.'
            Join:
                Banned reason-left: '&RED;Banned! Reason:&REASON; (Left: &LEFT;min.)'
                Welcome msg: '&GREEN;You have been unbanned. Welcome back!'
                Banned IP: '&RED;Your IP has been banned.&WHITE; Do not change nickname!'
                Banned reason: '&RED;You have been banned from this server. Reason:&REASON;.'
            Standard reason: ' neudán'
            Error:
                No access: '&RED;Nemás oprávnení'
                Player is offline: '&RED;Hrác je offline'
        MySQL:
            Use: true
            User: root
            Port: 3306
            Host: localhost
            Database: minecraft
            Password: ****
            table: ab_list
            table history: ab_history
        Settings:
            Ban nickname + IP: true
            Welcome message: true
            Broadcast kick msg: true
            Broadcast ban msg: true
            Use IP history: true
            Broadcast unban msg: true
    

    If i turned mysql off, no error in console.
    Edit: sorry for bothering you i haven't downloaded mysql connector. Why does every plugin have its own mysql connector?
     
  20. Offline

    Kahl

    Is this working with 818?
     
  21. Offline

    Jan Tojnar

    yes
     
  22. Offline

    Gravity

    Please update the second download link (the one with /kick and /ban, NOT /kickk and /bann) it has 404'ed
     
  23. Offline

    kyku

    done
     
  24. Offline

    l104693

    How do I ban people permanently WITH a reason?
    When I typ:"/ban player griefing" It doesn't work.
    And when I typ "/ban player 0 griefing" It's like kicking someone...
     
  25. Offline

    Yukari

    Could you have it broadcast the notifications to all OPs on the server? I don't want everyone to see it, but it's nice if the other OPs can see when I've banned someone so they don't try banning them or something.
     
  26. Offline

    The Wizard

    Is this plugin dead?
     
  27. Offline

    Ratchet

    does this support permissions 3?
     
  28. Offline

    zenyl

    Man... i LOVE you for this!!! Mind make a reload command, so we dont need to reload everything to change a letter? :p

    For this plugin: [cake][cake][cake][cake][cake] / [cake][cake][cake][cake][cake] (5/5) :D
     
  29. Offline

    TheMadMan697

    I just tested this out and i love it. one slight problem though. i have 696 banned players in text file. it would be nice to import them all to the mysql database. does anyone know of a script or know how to make one that could do this ?
     
  30. Offline

    Holls

    When will an update?

    Poland rlz :D
     
  31. Offline

    Hydrosis

    Is this inactive? It's been a looonnng time lol. Anway, there is a bug if you use MySQL. It doesn't delete the bans from the database and sometimes doesn't ban the IP at the same time (yes I have it set to true in the configs).
     

Share This Page