[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

    NobodyOfNaught

    BUG: If I ban someone using a partial name it kicks the person however only adds the partial name to the ban list.

    FEATURE REQUEST:
    Saving the reason in the ban list so that when people attempt to rejoin they are given the reason again.
     
  3. Offline

    maxsteele

    I know this has nothing to do with this plugin, but I keep seeing people asking for GroupUsers support.

    authorblues, the developer of GroupUsers, is no longer supporting or updating it. You can read his statement about this in his post here.

    For those who do not wish to follow the link, here is a quote from the post:

     
  4. Offline

    yottabyte

    I have not added any support to kicking/banning with partial names and I have no plans to in this moment.

    And thanks, maxsteele :p
     
  5. Offline

    Racha

    Can you make this to ban ip ?
     
  6. Offline

    oliverw92

    This may seem like a silly question, but it seems that by changing the commands to avoid conflict you have just circumnavigated another solution - why not just make KA use the default banned-players.txt in the main directory? Then you can keep your commands as /ban and /kick and it won't make any difference whether you are op or not on the server. It just seems rather long winded to now have to type /ka <action> <name> when MrMoron is pouring lava buckets over someones building.
     
  7. Offline

    Damien711

    Some reason this doesn't work for me whever i type /ka it just appears in red although i put it in permissions.
     
  8. Offline

    Lookatmego

    HELP!every player gets to kick and ban even guest even tho i only had it in permissions for me and my mods WTF
     
  9. Offline

    MarsGodofWar

    Im having the same problem Its only set up for my highest ranking members but anyone can use it.
     
  10. Offline

    Daveyo

    now that essentials is broke, these kind of addons need finished! Was looking forward to trying it
     
  11. Offline

    yottabyte

    Sorry guys, I'm not at home atm so I can't do anything. I recommend using MCBans instead though. I've started developing other plugins and now that MCBans has all the important features I can't see a reason not to use it.
     
  12. Offline

    Jekotia

    This for admins like myself is superior to MCBans, as neither my fellow admins or myself will ever support a global bans system of any kind. It would be really nice to see this updated and maintained.

    Also, when I try to run KiwiAdmin commands from the console (in this case, "ka ban jekotia" (banning myself for testing purposes), I get this:

    ka ban jekotia
    2011-02-25 20:13:35 [INFO] Cannot execute that command, I don't know who you are!
    2011-02-25 20:13:35 [INFO] /ka kick player [reason] - Kick a player
    2011-02-25 20:13:35 [INFO] /ka ban player [reason] - Ban a player
    2011-02-25 20:13:35 [INFO] /ka unban player - Unban a player
    2011-02-25 20:13:35 [INFO] /ka reload - Reload KiwiAdmin

    It would be really nice if you were to continue supporting this plugin.

    Edit: How to I merge sequential posts? I've seen other users with merged double-posts >.<

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

    yottabyte

    Updated. I may be adding MySQL support now that I'm at it. Maybe.
     
  14. Offline

    Jekotia

    The download link still goes to 0.4 it seems. On server load it says KiwiAdmin 0.4, and also in the plugin.yml inside the .jar.
     
  15. Offline

    yottabyte

    Oh, forgot to change that! Reuploaded.
     
  16. Offline

    Jekotia

    Running KiwiAdmin 0.6 on CraftBukkit build 432jnks.

    ka reload
    2011-02-26 10:30:34 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'ka' in plugin KiwiAdmin v0.5
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:21)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:173)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:362)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:347)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
    at com.yottabyte.bukkit.KiwiAdmin.reloadKA(KiwiAdmin.java:270)
    at com.yottabyte.bukkit.KiwiAdmin.onCommand(KiwiAdmin.java:83)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:19)
    ... 6 more




    Also, it seems to be too case sensitive. for example, shortly before this error I tried to unban Gunzilla, but he couldn't connect. I opened the ban list, saw it was saved as gunzilla, and tried again, all lowercase. That time it worked. It reports a user as unbanned even if the ban never existed. For admins this isn't really an issue, as we verify all of our bans and unbans by checking the server files, but moderators don't have this type of access.
     
  17. Offline

    SgtSpike

    Thanks for continuing to support this plugin. I can't stand MCBans - it doesn't allow local storage of the local banlist, which means if he ever decides to stop providing support for the plugin, we'd lose all the bans we made. It also means there is no way to import the existing banlist of 600+ bans into the MCBans database.

    MySQL support would be AMAZING. Seriously. If you could add that in, I would be forever grateful.
     
  18. Offline

    yottabyte

    Updated! MySQL support~
     
  19. Offline

    Jekotia

    Have you fixed the excessive case sensitivity? In version 0.5 it's not enforcing bans unless the names match EXACTLY (e.g. an entry of "jekotia" will not stop "Jekotia" from joining). I'm reluctant to put this on my server until I can be certain it has been fixed. MySQL support made me give in and try it ^_^

    Edit: There appears to be no MySQL configuration options...
     
  20. Offline

    yottabyte

    Yeah, case sensitivity is fixed. The MySQL options should appear in the config file when running 1.0, no?
     
  21. Offline

    Rocik

    Thanks for update. If you have free time try to do other easier commands, or time ban :) its only what this plugin need to be perfect.
     
  22. Offline

    yottabyte

    What do you mean by easier commands? I may do temp bans.
     
  23. Offline

    Jekotia

    It's not generating a config file as far as I can tell.
     
  24. Offline

    yottabyte

    Are you sure? Just tested again and it creates a config.properties in plugins/KiwiAdmin/ [​IMG]
     
  25. Offline

    Jekotia

    I don't even... I don't see how, but could it be related to craftbukkit builds? Running 432jnks.
     
  26. Offline

    Rocik

    I hate this /ka [​IMG]
     
  27. Offline

    yottabyte

    Ah yes, I found a way to override the original op commands. That's on the to-do list.
     
  28. Offline

    Odjit

    Banned players are able to rejoin for me unless you have the capitalization perfect, and the mysql config is not generated- KiwiAdmin loads as version 0.5, and not 1.0
     
  29. Offline

    yottabyte

    Oh wow, no wonder it wasn't working for you guys! Dropbox didn't update the file for some reason [​IMG]

    Tried uploading to Dropbox again and added a mirror. The capitalization problem is fixed in 1.0.
     
  30. Offline

    TravisV10

    Thank you SO MUCH for this plugin!!!

    I haven't been able to ban players for over a week!! I've had griefers log back in after I ban them and laugh. They ruined my server.

    Thanks for this! You have no clue how much it's helped me.
     
  31. Offline

    Jdbye

    @yottabyte:
    `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    Won't work. "ON UPDATE CURRENT_TIMESTAMP" updates all the timestamps in the table whenever one row is updated. I learned this the hard way when working on a project.
     

Share This Page