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

    spunkiie

    Is it possible to perm ban ?

    BTW: If I type /bann <nick> it will ban NICK + IP automatically ? (if so, this plugin r0x)
     
  3. Offline

    crysis992

    MySQL support would be awesome =)
     
  4. Offline

    luckyslayer92

    Cool plugin, can you put kicking in this too?
     
  5. Offline

    tedmazer

    I believe this is the exact same thing essentials has.
     
  6. Offline

    msw1

    Essentials doesn't have Welcome Back or temporary.
     
  7. We have temp bans
     
  8. Offline

    kyku

    added to the TODO list

    /bann nick 0 reason, /bann nick 0 or /bann nick - ban NICK + IP automatically (perm)

    ok, this will be in 0.3

    BIG UPDATE (0.3)

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

    anon

    I know its a big thing to ask, but... could you expand this to something like simpleban plugin?
     
  10. Offline

    kyku

    we will see :D
     
  11. Offline

    MrManiek

    KiwiAdmin 2.0 it's Better
     
  12. Offline

    Plague

    changelog has to be at the end
    version ranges are to be used only when needed and there is no tilde allowed.
     
  13. Offline

    kyku

    done
     
  14. Offline

    Plague

    The title version should be a recommended one only...
     
  15. Offline

    Tfs Halo

    exactly what i want because simpleban is inactive :p and i saw this and was like '':O yay''
     
  16. Offline

    spunkiie

    This plugin is Awesome. We are using this instead of 'jail' and works like a charm.

    BTW: It seens that on HIGH LOAD servers, the timer counter runs slower (i.e: a 10 minutes ban turns into a 30 minutes ban). Many other plugins had this kind of issue with hight load servers (i.e: proPertime).
     
  17. Offline

    kyku

    thanks, but you are wrong. This plugin use unix timestamp, not timer counter.


     
  18. Offline

    spunkiie

    You're right.

    After a few more tests we confirmed: the delay is OK :)
     
  19. Offline

    firtvid20

    Hey, what's the colour codes (e.g. &RED = red)?
     
  20. Offline

    kyku

    Code:
    &AQUA;
    &BLACK;
    &BLUE;
    &DARK_AQUA;
    &DARK_BLUE;
    &DARK_GRAY;
    &DARK_GREEN;
    &DARK_PURPLE;
    &DARK_RED;
    &GOLD;
    &GRAY;
    &GREEN;
    &LIGHT_PURPLE;
    &RED;
    &WHITE;
    &YELLOW;
     
    firtvid20 likes this.
  21. Offline

    Miguel_Bremen

    I will banning not time .
    /bann User Reason
    This functional not .

    My English is Bad sorry .
     
  22. Offline

    Bigwig222

    dude, thanks :D
     
  23. Offline

    DylanP

    MySQL support would be awesome! That way I could make a page like bans.php for people to see why they were banned, etc...

    Does this plugin use banned-players.txt?

    Quote me or @ me when you reply so I get a notification, please.

    Also, can you make it where it's just /ban and not /bann, and if there's another plugin with /ban it over-rides it?

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

    kyku

    Now you can use /bann User 0 Reason, but in future i'll add this feature (maybee next version)

    I will release next version tomorrow.
    Plans: new commands /bannip, /unbannip, MySQL (+php script), SQLITE (i'm not sure) and alternative plugin (with /ban, /unban, etc.)
     
    Jan Tojnar likes this.
  25. Offline

    firtvid20

    Coo
    Cool thanks!
     
  26. Offline

    DylanP

    Where's the new version?
     
  27. Offline

    Jorrdan

    Would be awesome if you took the time to turn this into a simplebans kind of thing. Works good though!

    Actually, what would make this plugin a lot better is to log the IP's of the players. That way even if they are offline you could do /bann player24 and it would ban the IP too. I really hope you add this feature.

    Thanks
     
  28. Offline

    kyku

    Sorry for this delay but i was too busy.

    this is what I did :p

    Advanced bans v0.4 is out
     
  29. Offline

    anon

    I would like to request a range ban option, something like /bann 192.168.*.*

    It would be incredible usefull for offline mode servers, as many people have dynamic ips. It would also be incredible usefull if you want to restrict your server to a country only.
     
  30. Offline

    Jorrdan

    Thank you good sir :) This is just what i was lookin for!

    This feature would be epic, i hope you add this too!

    Note though, anon if you are using a home machine, just use peerblock to do that. It's what i used to do when my server was in its early stages.

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

Share This Page