[ADMN][SEC][GEN] Lockdown V1.0 - temporarily make your server OP only [766]

Discussion in 'Inactive/Unsupported Plugins' started by cyberjacob, May 19, 2011.

  1. Offline

    cyberjacob

    Lockdown - Make your server OP only
    Version: v1.0

    [​IMG]

    Lockdown was designed to temporarily restrict server access to OPs only. upon entering lockdown the plugin kicks all existing non-OPs with a relevant message, as well as kicking any new players that try to join who are not OPs. The lockdown feature is toggled with the command /lockdown which gives a message as to which state the server has been changed to when given. When entering lockdown all connected OPs are notified and any new OPs that join will also be notified. the command is OP only to stop griefers locking people out of the server.

    Features:
    * Kicks non-OPs already connected
    * stops non-OPs from joining

    <Edit by Moderator: Redacted mediafire url>

    <Edit by Moderator: Redacted mediafire url>

    Changelog:
    Version 1.1
    * fixed `java.io.FileNotFoundException: Jar does not contain plugin.yml` error

    Version 1.0
    * Plugin released.

    TODO:
    * Permissions support
    * Levels of lockdown
     
    Last edited by a moderator: Dec 14, 2016
  2. Offline

    Fr0zenfr0g

    Can you fix so when a player try to connect a messeage come up with a mesage i can change in config?
     
    cyberjacob likes this.
  3. Offline

    cyberjacob

    I haven't really got a config file yet. not quite sure how to do one.
    it it working well?
     
  4. Offline

    Fr0zenfr0g

    I have not try get because i can not reach my computer :(
    Fucking teamviewer
     
    cyberjacob likes this.
  5. Offline

    cyberjacob

    use VNC or logmein, they work better
     
  6. Offline

    Plague

    the CB version in title should be recommended one (unless you need newer for the plugin to work)
     
  7. Offline

    cyberjacob

    fixed. any chance of a Dev tag plague?
     
  8. Offline

    Plague

    you get the tag when hitting releases
    Btw, ther eis a rule no 7 in Terms and Rules that you probably missed ;)
     
  9. Offline

    Janb

    Is this mode persistent through reboot? I was looking for something like this for when I'm working on the server, which usually means a few reboots. Also, the option to display a message as Fr0zenFr0g suggested would make this plugin 982x more awesome.
     
    cyberjacob and Rich Boos like this.
  10. Offline

    cyberjacob

    I am working on both of these features at the moment
     
  11. Offline

    Janb

    Cool, looking forward to it :)
     
  12. Offline

    Kloporte

  13. Offline

    cyberjacob

  14. Offline

    sfxworks

    Can you make it so if a player is within a group (such as admin) then they also wont be kicked?
    Using Group Manager atm and i find this useful
     
  15. Offline

    cyberjacob

    it's in the TODO isn't it
     
  16. Offline

    sfxworks

    Oh sorry. I can't read.
     
  17. Offline

    cronikkk

    Sorry but whats the difference between this and whitelist?
     
  18. Offline

    cyberjacob

    this can be toggled on and off by the use of the /lockdown command.
    with regards to the groups, that was the 'levels of lockdown' ie. a green lockdown would let all players in the members or higher group stay (aka a whitelist). but an orange lockdown would only let players in the moderator or above stay, and so on, until a black lockdown lets only OPs/the server owner on.
    this would be done by assigning permissions to the different groups, eg
    group: Members
    Permissions:
    - 'Lockdown.Green'
    would let people in the Members group survive a green lockdown. the nesting (order of the levels) will be adjustable vie the config file,
     
  19. Offline

    jamescosten

    Am getting the following on server start and restarts ...

    Show Spoiler
    12:23:30 [SEVERE] Could not load 'plugins/Lockdown.jar' in folder 'plugins':
    java.io.FileNotFoundException: Jar does not contain plugin.yml
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:63)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:194)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:117)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:101)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:265)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  20. Offline

    cyberjacob

    OK, fixed that. IdeaIC didn't like that it couldn't compile the plugin.yml.
    I've updated the destination of the link in the original post.

    Zeluboba

    Member Since:
    Jan 29, 2011
    New

    Hello
    i need ur plugin working:
    http://forums.bukkit.org/threads/ad...mporarily-make-your-server-op-only-766.17928/
    it doesnt work and spam console at Server start, i need it working too much,please repair it
    and need simple config/permissions support for writing players names in it,who wont be kicked, using this plugin(if i dont want to OP this player)
    and need to customize message after kicking=)
    repair it for me please *_*


    really not helpfull


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

    jamescosten

    Ok downloaded the new version and got this.....

    Show Spoiler
    19:11:20 [SEVERE] Could not load 'plugins/Lockdown.jar' in folder 'plugins':
    while scanning for the next token
    found character '\t' that cannot start any token
    in "<reader>", line 8, column 5:
    /<command>
    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:360)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:250)
    at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:30)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:68)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:194)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:117)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:101)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:337)
    at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:243)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:127)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:271)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:401)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:386)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  22. Offline

    cyberjacob

    are you running the server on a windows or a linux server?
     
  23. Offline

    jamescosten

    Mac OSX 10.6.7. Not sure why this would matter??
     
  24. Offline

    cyberjacob

    different newline characters
     
  25. Offline

    jamescosten

    Uh huh so is it going to get fixed??
     
  26. Offline

    cyberjacob

    I'm working on it now, but if this piece of ... stuff ... that I call a server would work properly, I could get it done a lot quicker. sh well, should be done in the next 30 mins or so
     
  27. Offline

    jamescosten

    Ok coo
    Ok cool thank you.
     
  28. Offline

    cyberjacob

    ok, this is an untested version because my server is 1.6 now, if it works, I'm gonna move it to the main post. thanks for the testing james
    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 14, 2016
  29. Offline

    jamescosten

    Still getting this message.

    Show Spoiler
    21:16:17 [SEVERE] Could not load 'plugins/Lockdown.jar' in folder 'plugins':
    while scanning for the next token
    found character '\t' that cannot start any token
    in "<reader>", line 8, column 5:
    /<command>
    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:360)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:250)
    at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:30)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:68)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:194)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:117)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:101)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:265)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  30. Offline

    cyberjacob

    so the example in the wiki includes a tab... nice one!
    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 14, 2016

Share This Page