[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

    PatrickFreed

    Yeah I tested it and it works great.
    Thanks for this awesome plugin, I hope you continue to update it. :)
     
  3. Offline

    Giuseppe

    Code:
    00:58:27 [INFO] [KiwiAdmin] Giuseppe1990 banned player Rai4ner2Zufall.
    00:58:27 [SEVERE] Could not pass event PLAYER_MOVE to AuthMe
    java.lang.NullPointerException
            at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.getLastAlert(PlayerCache.java:68)
            at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.isAlertNeeded(PlayerCache.java:76)
            at com.bukkit.fabe.AuthMe.AuthMe.checkAuth(AuthMe.java:611)
            at com.bukkit.fabe.AuthMe.Listener.AuthMePlayerListener.onPlayerMove(AuthMePlayerListener.java:190)
            at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:242)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:130)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    00:58:27 [SEVERE] Could not pass event PLAYER_MOVE to MultiVerse
    java.lang.NullPointerException
            at com.onarandombox.Rigby.MultiVerse.MVPlayerListener.onPlayerMove(MVPlayerListener.java:212)
            at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:242)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:130)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
     
  4. Offline

    yottabyte

    Those seem to be errors happening when a player is kicked from the server and MultiVerse and AuthMe are still listening for their position. This has nothing to do with KiwiAdmin, rather Bukkit or the two other plugins.
     
  5. Offline

    Typhoon31

    Hi!

    Could you please add a function to disable the broadcast messages?
    Because I have an other Plugin on my Server which notifies my users on kicking/banning an user.

    €:

    When I try to kick a certain user, I get this error:

    Code:
    2011-05-01 21:49:20 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'kick' in plugin KiwiAdmin v2.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:677)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
        at org.bukkit.craftbukkit.CraftServer.getPlayer(CraftServer.java:145)
        at com.yottabyte.bukkit.KiwiAdmin.kickPlayer(KiwiAdmin.java:322)
        at com.yottabyte.bukkit.KiwiAdmin.onCommand(KiwiAdmin.java:226)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    Server is running #740
     
  6. Offline

    oliverw92

    Could you add a /lookup <player> command?
     
  7. Offline

    grandwazir

    Yes please. This is the one thing that is stopping me from adopting KiwiAdmin on my server.
     
  8. Offline

    lotrein

    Hey there, i have a server running on #683 and it seems that tempbans dont work :S
    I think it's because of Whitelist plugin, but i'm still not sure, becuse simple permament ban works fine.
     
  9. Offline

    grandwazir

    A rather humorous message from GroupManager when trying to kick all players from the console using KiwiAdmin:

    Code:
    2011-05-08 16:00:11 [SEVERE] GroupManager - SEVERE - A plugin is asking permission 'kiwiadmin.kick.all' for a null player... Which plugin does that? Bastards!
    2011-05-08 16:00:11 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'kick' in plugin KiwiAdmin v2.0
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:247)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:394)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:379)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 6
    (?i).**.*
          ^
            at java.util.regex.Pattern.error(Pattern.java:1730)
            at java.util.regex.Pattern.sequence(Pattern.java:1895)
            at java.util.regex.Pattern.expr(Pattern.java:1769)
            at java.util.regex.Pattern.compile(Pattern.java:1477)
            at java.util.regex.Pattern.<init>(Pattern.java:1150)
            at java.util.regex.Pattern.compile(Pattern.java:840)
            at java.util.regex.Pattern.matches(Pattern.java:945)
            at java.lang.String.matches(String.java:2102)
            at com.yottabyte.bukkit.KiwiAdmin.expandName(KiwiAdmin.java:181)
            at com.yottabyte.bukkit.KiwiAdmin.kickPlayer(KiwiAdmin.java:321)
            at com.yottabyte.bukkit.KiwiAdmin.onCommand(KiwiAdmin.java:226)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 6 more
    
    Not sure if the same happens for other commands called by the Console.
     
  10. Offline

    Leemur

    Hello, from console the plugin works fine, but in game I get this error:
    Code:
    17:11:35 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'ban'
     in plugin KiwiAdmin v2.0
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85
    )
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    55)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:677)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Perm
    issions
            at com.yottabyte.bukkit.KiwiAdmin.banPlayer(KiwiAdmin.java:354)
            at com.yottabyte.bukkit.KiwiAdmin.onCommand(KiwiAdmin.java:223)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    >
    even the player isn't op, I got this error.
    I don't use permissions.
     
  11. Offline

    Martin Brun

    how i can make a tempban? Please help me.
    That isn't working: /tempban airman888888 1d
     
  12. Offline

    crock

    bans don't save to mysql db in server.log it does say it connected
     
  13. Offline

    Legi0n12

    add 'mute' support, please
     
  14. Offline

    Sir Ducksworth

    Try /tempban airman888888 1 day
     
  15. Offline

    fellerets

    hey could you add /banip? because that would be awesome :D, just type /banip the name of the player and then he is banned :D, pls put that in because, when i type it with the standard plugin it says, Error: c -.-
     
  16. Offline

    Leemur

    add please an option to ban from IP players
     
  17. Offline

    cloakfox

    :confused:how to IP ban someone PLS REPLY
     
  18. Offline

    fellerets

    IPban someone? I started to ask for IPban and I see some other ppl want it too, so pls add it
     
  19. Offline

    hnrch02

    A warning system would be cool. Like /warn [player] [reason] and after the third warning the player gets banned for 12 hours or something like that
     
  20. Offline

    PatrickFreed

    there's a plugin called Heroic Rebuke for that
     
  21. Offline

    RustyDagger

    Uh none of my bans are working and i think its because of a mysl problem when i type /ban it acts as the consoles ban command and replys with the craftplayer message. heres my mysql setup.

    Code:
    mysql: true
    mysql-database=jdbc\:mysql\://mysqlhost\:3306/TC36761164558232745627357
    mysql-user: *******
    mysql-password: ********
    mysql-table: banlist
    auto-complete: true
    My host has told me to use mysqlhost as the connection info and i only have the 1 DB "TC36761164558232745627357"

    I have run the bit you supplied and it made the banlist table username and pass are fine for sure so whats the problem?
     
  22. Offline

    chlitto

    yeah, because everyone needs "yet another plugin" ;]

    a simple warning system would be cool.
     
  23. Offline

    Black_Jack

    How can i put LoginBan in few lines. For example, 1 line for reason, second for link, where i can complain this ban
     
  24. Offline

    RustyDagger

    any 1 else have this working on 766 ? even on flat file mine seems to be doing nothing Every time i type ban i get the craftbukkit message and nothing from this plugin i would get my server log but my host has a process running on it 24/7 so its mega huge cause i cant wipe it and i really don't want to download it. and try and find what the problem is. :/
     
  25. Offline

    Sphex

    Please update for 803
     
  26. Offline

    6y7t8h

    not working for 803 :(
     
  27. Offline

    cloakfox

    how to ip ban
     
  28. Offline

    Bonkerz

    link doesn't work..
     
  29. Offline

    Infectedd

    doesn't work on 803, doesn't take the commands it needs from essentials
     
  30. Offline

    Nlioc4

    Did you read his post? He said because groupusers is no longer going to be updated he isn't going to make compatibility for it...
     
  31. Offline

    Lookatmego

    did u read the date on my questions?it was ages ago when groupmanger was updated
     

Share This Page