OpLock
Running a Minecraft server is a labor of love, but nothing breaks the flow like discovering a critical bug while players are already online. You need to troubleshoot, tweak configs, or test a fix, yet the whitelist feels too blunt and a full restart disrupts everyone. That is exactly the headache OpLock was built to solve. This lightweight, server-side only mod gives you a simple command to instantly lock your server so only operators can join, letting you work in peace without kicking anyone who is already playing.
What Is OpLock for Minecraft?
OpLock is a Forge mod designed for server administrators who need a quick, non-destructive way to control access. Instead of enabling the vanilla whitelist and manually adding every trusted player, OpLock uses your existing operator permissions. With one command, you can set the server to reject any new connection from a player who does not have a certain OP level. Current players stay connected unless you choose otherwise, so you can fix issues without causing a scene. It is 100% server-side, meaning your players do not need to install anything extra on their clients.
Supported Minecraft Versions and Loader
OpLock is built for Forge and is compatible with a wide range of popular Minecraft versions, including 1.12.2, 1.16.5, 1.18.2, and 1.19.2. Because it is purely server-side, you can drop it into your mods folder on any Forge server running these versions and it will work immediately. No client mods, no resource packs, no fuss. If you are using the foxygame.net launcher, you can find OpLock in the add-on catalog and install it with a single click, ensuring it stays updated alongside your other mods without manual file management.
Why OpLock Stands Out
Traditional server lockdown methods often involve enabling the whitelist, which requires you to manually add every player you want to allow. That is slow and error-prone. Alternatively, you might kick everyone and restart the server, which is disruptive. OpLock gives you a middle ground: a temporary, permission-based lock that respects your existing OP hierarchy. You can even configure it to notify allowed players that the server is in maintenance mode, so they understand why their friends cannot join.
Key Features at a Glance
- Instant Lockdown: Toggle the lock on or off with a simple command, no restart required.
- Permission-Based Access: Only players with a configurable minimum OP level can join while the lock is active.
- Keep Current Players: Choose whether already connected non-OP players stay or get kicked.
- Custom Kick Messages: Set a friendly or stern message that locked-out players see when they try to connect.
- Configurable Delay: Add a short delay before a non-OP player is kicked, giving you time to grant temporary OP if needed.
- Startup State: Decide whether the server starts in locked or unlocked mode.
- Status Check: Run the base command with no arguments to instantly see if the server is locked.
How to Install OpLock
Getting OpLock for Minecraft is straightforward. First, ensure your server is running Forge for a compatible version like 1.16.5 or 1.19.2. Then, download OpLock from a trusted mod repository. Place the downloaded .jar file into your server’s mods folder. Restart the server, and the mod will generate its configuration file automatically. No client-side installation is needed. If you are using the foxygame.net launcher, you can skip the manual download entirely—just search for OpLock in the launcher’s mod library and add it to your server profile with one click, and the launcher will handle version compatibility for you.
Commands and Configuration
OpLock is controlled through a single, intuitive command: /oplock. Running it without arguments displays the current lock status. To lock the server, use /oplock true. To unlock, use /oplock false. You can also add a second argument to decide whether currently connected non-OP players should stay: /oplock true false locks the server but lets existing players remain, while /oplock true true locks and kicks everyone who does not meet the OP threshold.
Deep Configuration Options
The mod’s config file gives you even more control. You can set the minimum OP level required to bypass the lock (default is level 1, but you can raise it to 2, 3, or 4). You can define a custom kick message that players see when they are denied. There is also a connection delay option, which waits a specified number of seconds before kicking a non-OP player, giving you a window to promote them if needed. Finally, you can set the server to start in a locked state, perfect for maintenance windows or private events.
How to Download OpLock and Get Started
To download OpLock, head to CurseForge or Modrinth and search for the mod by name. Make sure you pick the file that matches your server’s Forge version. After placing the jar in the mods folder and restarting, you are ready to lock down your server. The mod is lightweight and adds virtually no overhead, so it is safe to keep installed even when you are not actively using the lock. Many server admins keep it as a permanent part of their toolkit for emergencies.
Why Server Admins Love OpLock for Minecraft
OpLock for Minecraft fills a niche that vanilla commands simply cannot. The whitelist is all-or-nothing, and the ban command is too aggressive. OpLock gives you a middle layer of security that respects your existing operator structure. It is perfect for fixing a broken plugin, testing a new datapack, or simply taking a breather while your trusted staff keep the server running. The ability to leave current players connected while blocking new joins is a game-changer for live troubleshooting.
Real-World Use Cases
- Emergency Bug Fixes: A duplication glitch is discovered. Lock the server, fix the config, and unlock it without ever kicking your players.
- Staff-Only Events: Host a private building session for your moderator team by locking the server to OP level 2 and above.
- Maintenance Windows: Set the server to start locked, perform updates, then unlock it when you are ready for the public.
- Grief Recovery: After a griefing incident, lock the server, roll back the affected region, and let players back in without a full restart.
OpLock and Your Server’s Performance
Because OpLock is entirely server-side and only checks permissions during the login process, it has zero impact on tick rate or gameplay. It does not add any new blocks, items, or entities. The mod simply hooks into the player login event and applies your configured rules. This makes it safe to use on even the largest servers. The configuration file is also hot-reloadable, so you can tweak settings without restarting the server.
Final Thoughts
OpLock is one of those small mods that every server admin should have in their back pocket. It solves a very specific, very common problem with elegance and zero performance cost. Whether you run a small community server or a large network, the ability to instantly lock down new connections while keeping your trusted staff online is invaluable. If you are tired of scrambling with the whitelist every time something breaks, give OpLock a try. It is free, easy to install, and works on all major Forge versions. Once you experience the peace of mind it brings, you will wonder how you ever managed without it.
===END===