[SEC/ADMN] McDefcon v4.0 - Server Lock Down [1240]

Discussion in 'Inactive/Unsupported Plugins' started by SystexPro, Jul 25, 2011.


Does this help your server?

Poll closed Sep 13, 2011.
  1. Yes

  2. No

  1. Offline


    Download [.jar Only] | API<Wiki> [Coming Soon] | Wiki[Coming Soon] | Report Bugs
    I will soon be moving this Plugin to BukkitDev as since it has the new Issue Tracker.

    McDefcon v4.0 - Lockdown your server!​
    Version: 4.0

    Development Channel:
    Server: irc.geekshed.net​
    Channel: #mcdefcon​
    If you want to see other updates on this or my other Plugins, or just want to stalk me :p Follow me on Twitter @SystexPro
    Description -
    McDefcon is a plugin that allows you to set certain Levels on your Server to keep Griefers out. It works on Offline/Online Modes Servers and it also works with McBans and it is set up with OP, Bukkit Permissions, and PermissionsEx(NEW)!​
    Defcon Levels -
    There are 6 Defcon Levels.​
    0 - Normal (The server allows incoming Players)​
    1 - KickMode (Kicks any player trying to join. McBans will kick the player aswell)​
    2 - Temp Ban(Temporary Bans Player from your Server. McBan Defcon Level only)​
    3 - BanMode (Kick Bans any player trying to join the server. For McBans purposes, it will be a LocalBan.)​
    4 - Mutes all Players(Does not kick Players with this Level).​
    5 - Turns off Building.​
    6 - Freezes all Players.​
    Defcon Commands -
    Command Trigger - /dc and /defcon​
    /dc ? - Shows Help Menu.​
    /dc lvl/level <level> - Sets the Defcon Level.​
    /dc level view - Shows the current Defcon Levels.​
    /dc check - Returns the current Defcon Level.​
    /dc reload - Reloads the Configuration File.​
    /dc cs - Clear Serve(Kick all Players)​
    Defcon Permission Nodes (Works with Bukkit Permissions as well) -
    mcdefcon.admin - Allows the Player to change Defcon Levels​
    mcdefcon.accept - Allows the Player to bypass any Defcon Level, OP's will also be allowed to bypass.​
    Defcon Configuration File -
    #McBans by SystexPro
    #Build: #1240
    #Version: 4.0
        Level 1 Message: Kicked. Defcon level 3.
        Level 2 Message: Banned. Defcon Level 2.
        Level 4 Message: Defcon Level 4. All Players Muted.
        Level 5 Message: Defcon Level 5. Building is off.
        Level 6 Message: Defcon Level 6. All players are frozen.
        Broadcast Level Change: true
        McBans Temporary Ban Time: 5m
        Kick All Players on Defcon Level Change: false
        Use McBans: false
        Use Bukkit Permissions: false
        Show Defcon Level On Join: true
        Defcon Level: 0
    [​IMG](McDefcon is know Open Source) Please do not abuse.
    How-To Video -
    Bugs -
    Commands don't work in the Server Console.(DOS)​
    On Server Close, Defcon Level doesn't save to Config. <-- Being worked on for 4.5​
    TODO -
    Add Console Commands.​
    Allow Multiple Defcon Levels.​
    Fix Defcon Level 5.
    Version 4.0 - October 7
    • Know uses PermissionsEx(same nodes)
    • Started on Custom Defcon Level 7.
    • Continued working on Auto-Updater.
    • Changed API to use PermissionsEx.
    Version 3.5 - October 4

    • Updated to #1240
    • No Major Updates, staying at 3.5
    • Changed up the API a bit.
    • Started looking into Plugin Conflicts with McDefcon<Thanks Zombiemold!>
    Version 3.5 - September 21
    • Updated to #1185
    • Added Defcon Level 6
    • Fixed some bugs with Level 4.
    • Added Command: /dc cs
    • Fixed some colors in the Messages.
    • Fixed a Version Error in the help menu.
    • Added a option to show the current level on join.
    • Started on McDefconAPI - 65% Done(More Here) <-- Link coming soon :)
    Version 3.0 - September 19
    • Fixed Defcon Level 5 not working.
    • Updated to Build #1060
    Version 2.5 - July 29
    • Changed Configuration Layout
    • Started to work on Auto-Updater
    • Added Defcon Level 5.
    • Fixed some Permission Bugs.
    Version 2.0 - July 28
    • Added Defcon Level 4.
    • Added Command /dc level view and /dc ?
    • New Bug: On Server Close, Defcon Level doesn't save to Config.
    • Changed order of Defcon Levels. (Thanks Joy!)
    Version 1.5 - July 27
    • Fixed McDefcon Folder not being created.
    • Removed McBan Type, Default Bans are Local.
    • Added Defcon Level 3
    • Added to kick all Players on Defcon Level Change
    Version 1.0 - July 25
    • Added Plugin
  2. Offline


    Defcon works other way around
    Also, is it possible to change actions
    in example defcon # kills players and deacon #+1 kicks them?
  3. Offline


    My goal wasn't to create a Defcon System like the Military, but to help protect and lockdown Servers.

    I'll look into your example.
  4. Offline


    may for as a fan of defcon game it was weird =)
    ps you have quite a harsh actions as default, your grievers should be very bad =)
  5. Offline

    Comrade Dmitri

    Why does MCDefcon say
    [MCDefcon] Hi
    Every time I change the levels?
  6. Offline


    Erm it shouldn't do that, I added that for a test but i removed it. Have you updated to 2.5?
  7. Offline

    Comrade Dmitri

    No. I will now.
  8. Offline


    there is a bug. users can't build and it tells the player the message for level 5 even if defcon level is set to 0. but if it is set to 1, players cannot join.
  9. Offline


    Yes i know, I'm fixing the problem.
  10. Offline


    I should have read this earlier, I hope you will get a fix out soon.

    Nedercraft, - Nederlandse Minecraft Server
  11. Request: config flag to enable showing Defcon level on login.

    Error: /defcon level

    10:18:32 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'defcon' in plugin McDefcon v2.5
            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.ArrayIndexOutOfBoundsException: 1
            at com.systexpro.defcon.McDefcon.handleCommand(McDefcon.java:142)
            at com.systexpro.defcon.McDefcon.onCommand(McDefcon.java:121)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    And a bigger issue, we have DefCon level 0, default.

    But no one can build, and people are getting DefCon 5 errors.

    Even setting it to 0 in-game, confirms it's 0, but still no one can build.

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


    He stated to be working on that bug two days ago, until it's fixed plugin is useless, im using whitelist with all my paid user groups bypassing the list and manually adding new users. To prefent them griefers/hackers aka noobs griefing the server.
  13. Offline


    i reported this bug two days ago :p
  14. Offline


    It's a mix up with Ops and Permissions, i'm testing it right know. For know, the Update will be released today, once it's fixed :)
  15. Offline


    Seems this plugin would be 10x more useful with configurable levels.

    Leave the 5 levels and the commands, but let admins choose what each level does. Create different functions, including the existing ones and then let people assign them to the levels. Also, would be AMAZING if you could set which permissions groups could get on at each level.

    i.e. on my server we have several groups, so let's say defcon 1 is mute all, defcon 2 is no guests, defcon 3 is no guests + mute, defcon 4 is no guests+mute+no Privates (second rank), defcon 5 is no guests, Privates, Sergeants and no build

    ... or however the admin wants to set it up on their server

    I think this system would be better because you usually don't want to penalize trusted players, depending on the threat level, for instance I wouldn't want to kick all joins if they are not guests and we're having a spam or grief problem, but at the same time I wouldn't want to give new recruits the ability to bypass a major alert
  16. Offline


    Is it fixed now? Can i reinstall the plugin?
  17. Offline


    hope you get better soon.
  18. Offline


  19. defcon 5 is awesome i use it on my personal server to stop some of my not so good frinds from ruining my server however it dosent stop them from breaking blocks and it should cause of this i have to activate 1 which isnt what i want i would like it alot more if defcon 5 locked it so people could walk around in your server but not be able to interact with it would be alot better :D

    ps suddenly had massive issue with defcon 5 seems to have jammed on temporairly had to remove plugin plz help as this plugin is extremely important to are server
  20. Offline


    Yes it is fixed.

    The plugin is fixed and Defcon Level 5 has no more bugs.

    Plugin is fixed. Defcon Level 5 is know working. Sorry for the downtime.

    Thanks :D, btw the plugin is fixed.

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


    Happy to see you back!
  22. Offline


    lol thanks, i'm glad to be back.
  23. Offline


    Is there any way to combine defcon levels? I need to be able to mute and freeze.
  24. Offline


    That is being worked on.
  25. Offline


    Also, I wanted to point out that McDefcon does something that prevents AuthDB, and possibly other similar plugins, from filtering players based on the addon's criteria, ie bad character filters.

    Just an FYI to the plugin author, or any users of mcdefcon that might be experiencing the same problem.
  26. Offline


    Hmm I never thought of that happening, I'll start checking that out. Thanks for letting me know :)
  27. Offline


    Is it compatable with permissionsEx?
  28. Offline


    Would you be able to add custom defcon stuff, like instead of bans you can do something else or such
  29. Offline


    Not at the moment, but i'm working v4.0 and that will no longer use the old Permissions. It will be switched to PermissionsEx

    I have thought of that but it seems kinda hard. I'll take a look into it.

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


    My idea for a simple way, is place string into a command line sender thingy.
  31. Offline


    Please fix pex, i really love the plugin. Thank you very, very much!

Share This Page