[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


    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)

    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!

    • 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 (Text):
    2. kiwiadmin.ban - Ban players
    3. kiwiadmin.kick - Kick players
    4. kiwiadmin.kick.all - Kick all players
    5. kiwiadmin.unban - Unban a player
    6. kiwiadmin.reload - Reload from the database
    7. kiwiadmin.tempban - Temporarily ban a player
    8. kiwiadmin.ipban - IP ban a player
    9. kiwiadmin.export - Export banlist
    Commands are simple:
    Code (Text):
    2. /ban [player] (reason) - Ban a player, the reason will be in the kick message.
    3. /kick [player] (reason) - Kick a player, the reason will be in the kick message.
    4. /kick * (reason) - Kick all players on the server
    5. /tempban [player] [time] [sec/min/hour/day/week/month] (reason)
    6. /unban [player] - Unban a player
    7. /ipban [player] (reason)
    8. /reloadka - Reload KiwiAdmin from banlist.txt
    9. /checkban [player] - check if a player is banned
    10. /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 (Text):
    1. CREATE TABLE  `banlist` (
    2.   `name` varchar(32) NOT NULL,
    3.   `reason` text NOT NULL,
    4.   `admin` varchar(32) NOT NULL,
    5.   `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    6.   `temptime` TIMESTAMP NOT NULL ,
    7.   PRIMARY KEY (`name`)
    8. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    10. CREATE TABLE  `banlistip` (
    11.   `name` varchar(32) NOT NULL,
    12.   `ip` varchar(15) NOT NULL,
    13.   PRIMARY KEY (`name`)
    14. ) 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 (Text):
    1. 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 (Text):
    1. CREATE TABLE  `minecraft`.`banlistip` (
    2.   `name` varchar(32) NOT NULL,
    3.   `ip` varchar(15) NOT NULL,
    4.   PRIMARY KEY (`name`)
    5. ) 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


    Nice, i like it! :D You should add so when someone is banned/kicked it will be displayed for everyone in the chat and the reason to why that player was banned/kicked. That would be awesome :3
    TowelieDOH likes this.
  3. Offline


    Good idea! Easy to add, too.
  4. Offline


    It would be amazing, i hope you can add it to the plugin soon :3
  5. Offline


    Would it be possible to add a way to unban a player, and possibly a way to reload the list if it was manually edited?
  6. Offline


    Update 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.
    --- merged: Jan 23, 2011 5:01 PM ---
    Fully possible, looking into it. :)
  7. Offline


    Update 0.3
    • Added /unban
    • Added /reloadka - reloads the banlist from banlist.txt
    Edit: sorry for double post, thought it'd merge! :x
  8. Offline


    Go the Kiwis!
  9. Offline


    works perfect :)
  10. Offline


    Suggestion: Allow the ban file to be pointed to in the config via an absolute path. This was one of my largest complaints about Hey0, is the lack of ability to easily share ban files between servers. I run two servers on the same box, so if I could point both of the servers to the same ban file, it would be incredibly helpful.

    I wouldn't really care if it didn't show up as a ban immediately on the other server, just so long as they are both adding to the list. That way, on a server restart, the list would be refreshed for both servers with bans from both servers.

    MySQL would be even better, of course. ;)
  11. Offline


    Just what I am looking for :)
  12. Offline


    Very nice! Just what I was looking for! Thanks a lot!
  13. hey will this work with groupuser if i give myself the permissions?
  14. *sigh* do I have to use permissions? Or can i just stick with groupusers?
  15. Offline


    From what i understand group users is no longer going to be updated, correct me if i am wrong
  16. Offline


    GroupUsers is outdated and no longer supported by it's creator. I will not spend time working on that, no.

    I might look into adding MySQL support, since I use that a lot on my server too. [​IMG]
  17. plz plz get it working i realy need a working /kick and ban and unban
  18. Offline


    could you please add a function, like /ban will ban the name and the ip?
  19. Offline


    People can just come back into the server after i ban them.
    Craftbukkit #141
  20. Offline


    It would be great if you could temp ban people aswell

    /tempban [5] [player] (reason) - Ban a player for X days, the reason will be in the kick message.
    The [5] represents how many days the player will be banned for, maybe make it so it can also be set to hours or even minutes?
  21. Outdated? lol

    Works just fine for me on build 141...
  22. Offline


    Great idea on the plugin!

    A few suggestions of things it should have :
    - Offline banning (don't you just hate when griefers leave just before you get to ban them)
    - Bans stored in banned-players.txt (or configurable ban file)
    - Temp banning (has been suggested above, i support it. Perhaps make it like /ban playername reason time (where time is something like 1h or 1m or 1d)
    - Messages when banned players try to connect (perhaps display the same message that was used when banning the player)

    Thanks, and keep doing awesome work :)
  23. Offline


    Offline banning is there. Bans are stored in a configurable text file in plugins/KiwiAdmin/banlist.txt
    Messages when trying to get on would require storing the reasons in a text file. I'm thinking about it. Temp bans is planned.
    I have exams and stuff coming up so I don't have much time to work on the plugin right now though :/
  24. Offline


    I'm kinda new at this... If I had your permission stuff on Admins-only, how would it look like?
    group: Admins
    permissions: if i put something here, won't I get only the permissions listed here :/ ?
  25. Offline


    It will also include the permissions from the group. If you want people in the "Admins" group to be able to use the commands, then put it under the Admins group. If you are using the standard settings in Permissions, that won't matter though since the Admins group can use all commands.
  26. Offline


    nice, simple and clean!! way to go.
  27. Offline


    Banning doesnt work on my server. :/ it saves the name to banned.txt but they can rejoin
  28. did u find a way for it to work with groupusers yet or no?
  29. Offline


    SEVERE: Could not pass event PLAYER_COMMAND to KiwiAdmin.

  30. Offline

    EvilSeph Retired Staff

Share This Page