[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

    Hacr

    This is the BEST ban/kick plugin for bukkit :D

    Please update for 1.8 ;)
     
  3. Offline

    yottabyte

    @crysis992 @Hacr Nothing to be updated here. It works just fine in 1.8
     
  4. Offline

    dataviruset

    It works for me too. Even my IP logging edited version. :)
     
  5. Offline

    IAreKyleW00t

    Works fine with the latest RB for Bukkit 1.8.1 - even with MySQL setup. Only thing is there is no /unbanip or anything. If you ban an IP you need to manually remove it from the file and then restart your server fully.

    Tried my best to get a /unbanip command working (with MySQL and flatfile) but I couldn't get it.... that's what happens when your a beginner with it. :3

    @yottabye if you could upload the 2.2 source that would help a lot! :D
     
  6. Offline

    Arton

    Dos this work with PermissionsEx ? :p
     
  7. Offline

    kayloe

    Using PermissionsEx, RB 1185, this works perfectly...
    Except my Moderators have the ability to kick someone in the Owners group.
    Moderators are rank 200 in PEX, Owners are 0. Any reason why
     
  8. Offline

    Arton

    then i tryet it gave me a load of erros
     
  9. Offline

    cmastudios

    I have a bug where if i ban/tempban someone with a reason the reason does not show up I am using mysql it shows up as 'undefined'. Kick reasons work tho.
    EDIT: For some reason it is working correctly now lol
    I figured out I had to do it like this: /tempban bad_player 20 reason Being bad
     
  10. ALL commands (kick/tempban/ban/baip) don't work! I get message with command syntax.
    /kick Guy
    =
    /kick player [reason] - Kick a player
    And nothing happening. Any idea? Last version of KiwiAdmin, CB #1185

    UPD: ALL commands don't work (even /reloadka) returning the command with 'correct' syntax
     
  11. Offline

    rmb938

    Same Problem
     
  12. Offline

    Mercury

    Code:
                kiwiadmin.ban: true
                kiwiadmin.kick: true
                kiwiadmin.unban: true
                kiwiadmin.tempban: true
    After updating to #1185 and Essentials --> Craftbook
    It says I don't have privileges to use that commands.
     
  13. Offline

    yottabyte

    Has not been updated for Bukkit permissions.
     
  14. What about our errors?
     
  15. Offline

    IAreKyleW00t

    This is working for me Running CraftBukkit #1185... All commands work perfectly and I'm using MySQL.
     
  16. Offline

    LadyVodka

    few days ago it worked fine but now when i try to ban someone , even test ban /ban test test
    it got ''An internal error occured while attempting to perform this command'' any idea ?
     
  17. Offline

    ZachBora

    When it says that check your console log.
     
    LadyVodka likes this.
  18. Offline

    LadyVodka

    -fixed
    tnx
     
  19. Offline

    MiNdFrReAk

    Whats about PermissionBukkit?
    Can you Update your Plugin for it?
    Works fine with permissionBukkit
     
    Mercury likes this.
  20. Offline

    blitzer88

    Maby you can update the pugin so we can check last ban and a reason of ban log of one player with who did ban player and the reason and time :p ?
     
  21. Offline

    OrtwinS

    Would be great is this plugin was to be kept updated, I use commandbook, but I exclude commandbooks ban system because I WANT temp bans and the ability to add a reason.
     
  22. Offline

    lucasboy99

    Ipban doesn't work?
     
  23. Offline

    suhy

    How to convert bans from .TXT to MySQL?
     
  24. Offline

    THG3

    Is there a way I can disable the display messages to EVERYONE when banning or kicking? Thanks
     
  25. Offline

    luki965

    HELP!

    I want to use KiwiAdmin on my server. CB #1240 but I can't. I'm using PermissionsEx. When I use /kick or /ban I have this in console:

    Help, plz!!!!
     
  26. Offline

    ZachBora

    @yottabyte can I continue this plugin? Is your source up to date?
     
    Leemur and Moo Master like this.
  27. Offline

    Leemur

    will be nice.
     
  28. Offline

    ZachBora

    It's still working for the moment, so unless something breaks I won't compile the source or anything.
     
    r3Fuze likes this.
  29. Offline

    Deathmarine

    This is my most favorite ban plugin, I despise mcbans and all its insanity and over protectiveness. However I have no issues on RB 1317 an PermissionsEx 1.15. I understand that this plugin is "inactive" but it is still functional. I run multiple servers and I use one ban database for all of them. My only issue with it, is that it seems that if a player is banned on one of my other servers they can relogin to another, Is there a way that when you update to have it re-query mysql onlogin or even a softreload onlogin? I believe this would resolve this. Btw I've almost completed my php ban administration system. I'll post links to it so you guys can use it on a LAMP server, or PHP enabled site along side this plugins

    Edit: Dude you need to release that 3.0.4 Version and make a change log. Thats right on.

    Sorry I couldn't help but notice this. You need to enable legacy support in the config yaml in Pex........ Considering that this plugin still has excellent functionality on Permissions 2.4 - 3

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  30. Offline

    luki965

    No at all, because when I use tempban command on CB for 1.8 it's not working... i type /tempban nickname time reason and I have that: You are tempbanned for 2h reason: unknown. So reason is not working and also banned player can enter server so that command is not working. can you fix it?
     
  31. Offline

    ZachBora

    Let me test it on my server. I'm pretty sure someone would have advised me if it wasn't working anymore.

    I just tried it and it works. Be aware that the message length has a limit. You type it like this :
    /tempban name 2 hours reason can be long here

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

Share This Page