[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

    jamescosten

    ok im getting frustrated now :(

    Show Spoiler
    22:58:54 [SEVERE] Could not load 'plugins/Lockdown.jar' in folder 'plugins':
    mapping values are not allowed here
    in "<reader>", line 7, column 15:
    usage: |
    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:745)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:307)
    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)
     
  3. Offline

    cyberjacob

    still not working?
     
  4. Offline

    derenix

    You had also some other mistakes in your plugin.yml :(
    This works for me: http://pastebin.com/cpCMiwwS

    Remember, you also need to enter the full path to your main class. In your case its "cc.co.cyberjacob.Lockdown.Lockdown".
     
  5. Offline

    andrewpo


    Your problem is most likely caused by you having a tab in your .yml file.
    Yml files can only contain spaces, please check to make sure that your text editor (ie notepad for windows) is configured to change tabs to spaces.
     
  6. Offline

    jamescosten

    I knew that, and that is not the problem.
     
  7. Offline

    cyberjacob

    ok, it's fixed this time, honest
    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 14, 2016
  8. Offline

    dimjimspark

    there is 2 bugs I found
    1. I am an admin with full permissions i tried the /lockdown and it said 'I dont have permission to exactue this command' and i was on the op list as well
    2. when i went to the console and typed /lockdown it kicked me (and im on the op list) but it kept all the other ops in
    I do like this surver lockdown idea i will come back to the page in a monuth or to and hopefully you will have fixed some bugs
     
  9. Offline

    iDennis95

    can you add commant to unlock?
     
  10. Offline

    cyberjacob

    the /lockdown command toggles the lockdown
    if you use it when the server is in lockdown, it deactivates the lockdown
     
  11. Offline

    RunningDingos

    whenever i do /lockdown it kicks them but then they just rejoin :/
     
  12. Offline

    cyberjacob

    they should get kicked again if they try to join
     
  13. Offline

    crysis992

    Please update this plugin and add permissions to it.

    example "lockdown.join" -> Users with this permission dont get kicked.
     
  14. Offline

    cyberjacob

    permissions support will be added when permissions is added natively in bukkit
     
  15. Offline

    dbizzzle

    whenever i lockdown the users just come back?
     
  16. Offline

    cyberjacob

    I'll look into the problem
     
  17. Offline

    Buildoholic

    did u find the problem
    becouse when i do /lockdown they keep loging in again :/
     
  18. Offline

    dbizzzle

    @cyberjacob Could you post the actual source code, not just another link to download the jar?
     
  19. Offline

    fussionzz97

    Does this work with Bukkit 1.8/1.0?
     
  20. Offline

    dbizzzle

  21. Offline

    fussionzz97

    On it!

    When the server is Locked down and i type /lockdown to turn it off it just says 'Server is now locked down!' Wont let me turn it off It then Kicks everyone from the Game when you type /lockdown Then everyone can just Join back again Needs a fix

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

    dbizzzle

    @fussionzz97 Hmm, I might make a version of this plugin since it doesn't work...
     
    fussionzz97 likes this.

Share This Page