Inactive [ADMN] AutoKick v1.7.2 - Need some downtime? Clear out your server. [1.4.5-R0.2]

Discussion in 'Inactive/Unsupported Plugins' started by thekris1234, May 17, 2011.

  1. Offline

    THEK

    [​IMG]


    Version: 1.7.2

    What is AutoKick?
    AutoKick is a plugin that allows you to effectively shut down your server to all users except OPs and those with "autokick.nokick" permission. If you have to bring your server down for any reason (e.g. editing the map or testing plugins), you can enable AutoKick and it will kick ALL players except OPs and those with "autokick.nokick". It also blocks the kicked users from logging back into the server but allows everyone else to join and leave freely

    How to use
    1. Type /autokick list [page] - to see all messages with ID's
    2. Type /autokick enable <ID> - <ID> is the message id seen on the autokick list.
    3. If timer is greater than 0 AutoKick will run after that time
    4. All users will be notified.
    5. Only OP's and those with 'autokick.nokick' will be allowed to log into the server.
    6. To disable, type /autokick disable
    7. To change the current message type /autokick change <ID>
    AutoKick is persistent across reloads, meaning that if AutoKick is enabled before a reload it will be enabled after the reload

    Features:
    • bPermissions and PermissionsBukkit Support (Others may work but have not been tested)
    • Kicks players whilst server is running. No need for restart for it to take effect (like whitelists)
    • Customisable kick messages
    • Timer
    • In game and server commands
    • Persistent across reloads
    Commands
    • /ak enable <Message ID> - Enable AutoKick
    • /ak disable - Disable AutoKick
    • /ak time <seconds> - change Countdown Timer
    • /ak force - Force close the server during countdown
    • /ak add <New Message> - Add a new message
    • /ak remove <Message ID> - Remove a message
    • /ak status - Show status of AutoKick
    Settings
    Code:
    Config.yml:
    You can change this but the plugin uses this for persistence
    enabled=false
    Message in use when the plugin/server was last reloaded
    lastUsed=0
    timer=30 - Timer is in seconds
    messages:
    - Server undergoing maintenance
    - Map cleanup in progress
    branding: true
     
    You can have as many messages as you like.
    
    Permissions
    Code:
    autokick.nokick - // Gives player immunity from AutoKick
    autokick.list - // Allows user to view available AutoKick Messages
    autokick.enable - // Allows user to enable AutoKick
    autokick.disable - // Allows user to disable AutoKick
    autokick.change - // Allows user to change the current AutoKick message
    autokick.status - // Displays the current status of AutoKick
    autokick.set.add - // Add a message
    autokick.set.remove - // Remove a message
    autokick.time - // Change countdown timer
    autokick.force - // Force close a server during countdown
    autokick.* - // Gives player access to all of the above
    
    Changelog:

    1.7.2
    • Add messages by using /ak add (message)
    • delete messages using /ak delete msgid
    • change countdown timer with /ak time [seconds]
    • force close a server during the countdown by using /ak force
    • Cleanup of response messages
    • Permissions fixes
    1.7.1
    • AutoKick.status open to all users
    • Status shows how many seconds until the plugin enables
    • Added config value to remove branding
    1.7
    • Added support for CB 1.4.5-R0.2
    • Permissions cleanup
    • MOTD fixed
    • Stats have been added to see how many people are kicked in a session
    Older
    • 1.6 - Added AutoKick Alias /ak
    • 1.5 - Added autokick.status
    • 1.4 - Completely rewritten and compatible with latest versions of CraftBukkit
    • 1.3 - Fixed error when using /autokick list
    • 1.2 - Added Timer, Fixed GroupManager and Permissions issues. Added Server commands
    • 1.1 - Cleaned up various bits of code
    • 1.0 - Added Permissions. Persistence Across Restarts. No Longer Shows "User Joined/User Quit" when they are AutoKick'd
    • 0.4 - Multiple messages can be entered on AutoKick.txt. Each is given an ID and can be chosen from within the game.
    • 0.3 - Crafbukkit 798. Minor fix so it shows the default message when the AutoKick.txt is first created.
    • 0.2 - Added in game enable/disable commands
    • 0.1 - Initial Release
     
    Habbo4Life, efstajas, tombik and 6 others like this.
  2. Offline

    THEK

    AutoKick Version 1.2

    Changes
    - Added ability to run all commands from Server
    - Added Timer
    - Fixed GroupManager and Permissions Issues

    Download
    v1.2: Jar / Zip


    Sorry for the wait. My Mac died and I'm currently making all the plugins for my new server so it's been a bit manic. Please let me know about any bugs in the plugin.
     
  3. Offline

    dunst0

    trying autokick list command in client brings up some nasty NPE

    Code:
    2011-08-02 19:49:54 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'autokick' in plugin AutoKick v1.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
            at com.imineserver.imine.MessageHandler.getAllMessages(MessageHandler.java:30)
            at com.imineserver.imine.AutoKick.onCommand(AutoKick.java:205)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
     
  4. Offline

    THEK

    Crap. Sorry. I did fix this but forgot to release it. I'll compile it in about 10 minutes.
     
  5. Offline

    dunst0

    sometimes things like that just happend ;)
     
  6. Offline

    THEK

    1.3 is available to download in OP
     
    dunst0 likes this.
  7. Offline

    dunst0

    thanks, using your plugin for my linux server to make the server shutdown more convenient
    now user are not just informed via message that the server going to shutdown
    the are also kicked from server with an nice message, that the server is shutdown :D
     
  8. Offline

    zenyl

    Well, this is pretty damn sweet!!! ;D
    Suggestions:
    -Color Code Support
    -More Messages (more than 10)
    -Permissions Messages (players in group "X" or higher gets another message)
    Else... Not much to say than DOWNLOAD IT!!! :D:D:D
    [sponge][sponge][sponge][sponge][sponge]/[sponge][sponge][sponge][sponge][sponge] (5/5 sponges)
     
  9. Offline

    DDieter

    I like this plugin!
    But can you upload the source code?
    As i like to look into it :p
     
  10. Offline

    efstajas

    Really, really useful. It's EXACTLY what I need. Thank you!
     
  11. Offline

    Unknown_1

    I have build 1060 and once I enable autokick it does not seem to stay active after a restart. Also once autokick is turned on it does not modify the enabled= option. It always stays false.
     
  12. Offline

    THEK

    Thank you, I've now fixed this. Re-download the latest version and it should work again.
     
  13. Offline

    tombik

    I liked OnlyOP but this is way more better.
     
  14. Offline

    Rollese

    Great plugin!

    Would it be possible to add running an external event (like sql query) when the autokick is enabled/disabled?

    Also it is currently broken with CB1240: the kicked client hangs up (crashes) before displaying the message.
     
  15. Offline

    Ctark

    Great plugin, works on 1.0.1-R1, but doesn't stay enabled after a reload or restart...
    Would be great if this could get updated and fixed.
    THANKS!
     
  16. Offline

    Kosmoh

    Thank you so much for this plugin, guy, i was really needing it for edit my map in security.
     
  17. Offline

    tombik

    It's down :/
     
  18. Offline

    KingMaga

    wow just what i need it, i´m gonna downoald it now!
     
  19. Offline

    Marium0505

    Are you planning to move to dev.bukkit? That would be cool! It's much easier if you have your plugin there! :)

    I would be very happy if you updated your plugin too! For what I understand from the errors I get, when I re/start the server, the plugin is outdated. This is the errors:
    2012-03-05 09:37:53 [SEVERE] Could not load 'plugins/AutoKick.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:148)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:287)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:211)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.imineserver.imine.AutoKick.<init>(AutoKick.java:28)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
    ... 8 more
    Caused by: java.lang.ClassNotFoundException: org.bukkit.event.player.PlayerListener
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 27 more
     
  20. Offline

    THEK

    Hi,

    Sorry it's been so long since the last update. I've spent the last 2 days rewriting this from scratch. You can expect a new version by the end of this week.
     
  21. Offline

    Himeki

    Awesome, was hoping it wouldn't be dieing.
     
  22. Offline

    pandapipino

    Update please. Thanks
     
  23. Offline

    Frogging101

    update it, or post the source code please.
     
  24. Offline

    Marium0505

    Hey boys and girls!

    I have been in talk with the developer, and when I asked when he planned to update his plugin, he answered this:

     
  25. Offline

    THEK

    AutoKick 1.4 released

    Tested as much as possible. If you do find any problems please let me know here. I'll be setting this up with BukkitDev soon.

    Download Jar
     
  26. Offline

    BenErGeek

    Thank you so much !!:D
     
  27. Offline

    kevile

    I took it out to a nice dinner and gave it a backrub but no dice.

    Seriously though, i think you missed a word there ;)
     
  28. Offline

    Marium0505

    The plugin works with Essentials Group Manager. The plugin has been enabled on my server from sunday, and when I see in the log I cant find any errors, and players are being kicked when they try to join. :)

    If you have the plugin enabled, and restart/reload the server, the plugin will still be enabled after the action.
     
  29. Offline

    THEK

    I've moved the plugin download to Mediaphillia, it should be far quicker to connect and download.
     
  30. Offline

    tombik

    i'm glad it's back :)
     
  31. Offline

    fluffinator09

    Could you give me an estimate to when AutoKick will update to 1.2.4?
    Thanks!
     

Share This Page