[INACTIVE] [ADMN] KiwiAdmin 2.2 - ban/tempban/kick/ipban, (MySQL or txt) [670-1158]

Discussion in 'Inactive/Unsupported Plugins' started by yottabyte, Jan 23, 2011.

  1. Offline

    yottabyte

    This plugin is no longer being updated for the public. The source is still being updated though, grab that and use it if you want to. Note that you might need to change some hard coded database names and such. (Advanced users only, basically)
    https://github.com/yottabyte/KiwiAdmin

    If you wish to continue the plugin in some form, please contact me first.

    things (open)

    KiwiAdmin 2.2
    Built against Craftbukkit #1000


    Hello people, I'm releasing my first public plugin!
    This is a very simple plugin, it adds the banning and kicking stuff for more people than just ops!

    KiwiAdmin requires either the Permissions or the GroupManager plugin!

    Features
    • Banning
    • Kicking
    • Unbanning
    • IP bans
    • Reloading banlist from either flatfile or database
    • MySQL support!
    • All actions are broadcasted to the people!
    • Case insensitivity!
    • Partial names support
    • 100% custom messages with colors
    • Temporary bans
    • Stores kicker, time, reason etc.
    • PHP script for a public banlist table. Example
    Partial names for /kick, /tempban, /ipban and /ban is optional although it is highly recommended as it seems like Bukkit has a built in feature where it can recognize a player just from the first part of their name. Eg. you ban player with "/ban playe", the ban will then be stored as playe and player will still be able to log in.


    In permissions, add these:

    Code:
    kiwiadmin.ban - Ban players
    kiwiadmin.kick - Kick players
    kiwiadmin.kick.all - Kick all players
    kiwiadmin.unban - Unban a player
    kiwiadmin.reload - Reload from the database
    kiwiadmin.tempban - Temporarily ban a player
    kiwiadmin.ipban - IP ban a player
    kiwiadmin.export - Export banlist
    
    Commands are simple:
    Code:
    /ban [player] (reason) - Ban a player, the reason will be in the kick message.
    /kick [player] (reason) - Kick a player, the reason will be in the kick message.
    /kick * (reason) - Kick all players on the server
    /tempban [player] [time] [sec/min/hour/day/week/month] (reason)
    /unban [player] - Unban a player
    /ipban [player] (reason)
    /reloadka - Reload KiwiAdmin from banlist.txt
    /checkban [player] - check if a player is banned
    /exportbans - export all bans to banned-players.txt
    
    If using flatfile, bans are stored in /plugins/KiwiAdmin/banlist.txt.
    IP bans are stored in plugins/KiwiAdmin/iplist.txt

    If you are using MySQL, run this query:
    Code:
    CREATE TABLE  `banlist` (
      `name` varchar(32) NOT NULL,
      `reason` text NOT NULL,
      `admin` varchar(32) NOT NULL,
      `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
      `temptime` TIMESTAMP NOT NULL ,
      PRIMARY KEY (`name`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    
    CREATE TABLE  `banlistip` (
      `name` varchar(32) NOT NULL,
      `ip` varchar(15) NOT NULL,
      PRIMARY KEY (`name`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    
    You will also need the Connector/J in your root bukkit folder just like all other MySQL plugins!

    Using the php viewer
    You can download the php file here.
    Open it in any notepad style program and change the database settings. Save and upload to website!

    Updating from 1.x
    If you have a database from KiwiAdmin 1.x you have to run
    Code:
    ALTER TABLE  `banlist` ADD  `temptime` TIMESTAMP NOT NULL ;
    Updating database from 2.0 to 2.1
    2.1 introduces IP bans, you have to create this table to use them
    Code:
    CREATE TABLE  `minecraft`.`banlistip` (
      `name` varchar(32) NOT NULL,
      `ip` varchar(15) NOT NULL,
      PRIMARY KEY (`name`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    [​IMG] Download
    Source (not updated too often)

    Update 2.2
    • Fixed /kick *
    • Added /exportbans
    Changelog (open)


    Update 2.1
    • Added IP bans
    Update 2.0

    • Almost completely rewrote the entire plugin
    • Added temporary bans, full flatfile support
    • New configuration file
    • Added customizable messages!
    • Now displays ban reason when player tries to log in
    Update 1.2

    • Added partial names support for kicking and banning.
    • Fixed the kicking message when banning showing "Reason:" although there were no reason. (Only for MySQL users)
    Update 1.1

    • Reverted back to normal commands, /ban, /kick and /unban
    • More case insensitivity improvements. The banlists are no longer lower case only.
    • Fixed the ugly blank lines in the txt file if using flatfile
    Update 1.0


    • MySQL support!
    • Cleaned up A LOT of code.
    Update 0.5


    • Removed TSLPC
    • Added console commands support. These will be displayed as "server" eg. "yottabyte has been kicked by server!"
    Update 0.4


    • Updated to work with version 183+
    • Reformatted the commands to avoid interfering with the vanilla commands.
    Version 0.3


    • Added /unban
    • Added /reloadka - reloads the banlist from banlist.txt
    Version 0.2


    • When a player is kicked or banned, a global message is sent. Includes reason if there is one.
    • Changed PLAYER_JOIN to PLAYER_LOGIN, banned players are now kicked before they enter the server.

     
    losdamianos, malex, zcleaver and 3 others like this.
  2. Offline

    havejack

    @ZachBora Do you mind if i keep the plugin up to date and try to add features (Just finished learning java but i understand it now enough)
     
  3. Offline

    ZachBora

    It's yottabyte's and from what I understand he still updating the source, just not releasing the plugin publicly.
     
  4. Offline

    havejack

    @yottabyte Can i Plz Publish it and add some stuff that i want to ?
     
  5. Offline

    luki965

    Ok, now it is working but it have one mistake! I use /tempban on me for test and I write this: /tempban LuKi965 2 hours test. Next I have that:

    [​IMG]

    And next, when I want connect I have that:

    [​IMG]

    Plugin isn't working correctly!
     
  6. Offline

    ZachBora

    It's a feature
     
  7. Offline

    dataviruset

    I always thought one should use /tempban <nick> <time in minutes> . <reason>
     
  8. Offline

    ZachBora

    /tempban [player] [time] [sec/min/hour/day/week/month] (reason)
     
  9. Offline

    Leemur

    someone continues this wonderfull plugin??
    I want to work with MySQL, but the databases are created with errors.
    I have to work with flatfiles :(
     
    TheMaa likes this.
  10. Offline

    TheMaa

    I agree with him over me, someone continue this plugin!
     
  11. Offline

    Psithief

    How do we make a 'public release' branch of kiwiadmin on github?

    I don't really understand the difference between forking and branches at this point.
     
  12. Offline

    iama

    kiwi works with 1.8.1 and 1337 bukkit now ?
     
  13. Offline

    Psithief

    Yes, it has been working with 1.8.1 and 1337 since v2.2
     
  14. Offline

    the_Zorro

    Actually it is updated to SuperPerms here
    That thread also contains all permissions and the working mySQL tables!
     
  15. Offline

    tom

    Would be great if another plugin developer can take this over in a new thread if OP is no longer updating :(
     
  16. Offline

    ZachBora

    Didn't you read the post just above yours?
     
  17. Offline

    tom

    Yes but that isnt a full re take over of the plugin, its just a mysql table for the in game portion, not the web portion.
     
  18. Offline

    PyPKjE

    Could you please make a system, which could register players IP when he is not online, so the system could IP ban griefers? ;)
     
  19. @yottabyte
    PS: F***. Closed tab without posting my reply... So stupid:D

    Argh... Ok. I'll try to explain the bug (wait, 'll update in few minutes)

    UPD
    http://www.youtube.com/watch?v=vjQ9Mz6Ngq4

    Ok there's the video. Take a look and ask me if you still don't understand what I want...
     
  20. Offline

    yottabyte

  21. Offline

    ZachBora

  22. @yottabyte
    Thanks. Will try to compile it and test if there's a need to return to your plugin. Because your web-part of plugin is there and seems to work.
     
  23. Offline

    tom

    How come the banlist.php is so ugly compared to the one shown in the example? :(

    @yottabyte
     
  24. Offline

    yottabyte

    That is the old one. The one in the example is another version that we use on my server.
     
  25. Offline

    tom

    By any chance can you provide us a copy of one like that, nice and stylish? I know this is inactive, but in my opinion greatest web/ban plugin :) And i would greatly appreciate it if you could provide the newer banlist.php.

    @yottabyte
     
  26. Offline

    mbaxter ʇıʞʞnq ɐ sɐɥ ı

    @yottabyte
    Moving to Inactive as per your title.
     
  27. Offline

    rodier

    I got problem.. when I /banip someone.. how can I un-banip ? /unbanip is not exist at kiwiadmin and /unban doesnt work..
    hm.. i must use /pardonip from essentials..
     
  28. Offline

    svida

  29. Offline

    dataviruset

    We did an integration on our SourceBans page. But, however, we don't have a way to see the lengths of the bans yet (only start and end time).
     
  30. Offline

    dwi

    Please, pretty please, could you provide your banlist.php with that ban history tracking feature?
     
  31. Offline

    Deleted user

    Thanks a lot man.
     

Share This Page