Compatibility
Minecraft: Java Edition
Platforms
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
OpLogin
OpLogin is a simple and effective Minecraft plugin designed to enhance server security by requiring operators to authenticate with a password before they can execute commands. Perfect for server administrators who want to ensure that only authorized and authenticated operators can perform administrative tasks.
Features
- Password Protection: Require OPs to log in with a password before they can use administrative commands.
- Password Management: Set and reset OP passwords easily via console commands.
- Persistent Storage: Passwords are saved across server restarts to ensure seamless operation.
- Console Security: Sensitive commands are hidden from the console log to protect against unauthorized access.
- Command Whitelist: Configure which commands can be used without requiring login.
- Live Reload: Reload configuration and whitelist without server restart.
Commands
/opsetpass <player> <password>
Sets a password for the specified OP player. This command can only be executed from the console./oplogin <password>
Allows an OP player to log in with their password. Once logged in, the player can access all OP commands./resetop <player>
Resets the password for the specified OP player. This command can only be executed from the console./opreload
Reloads the plugin's configuration and whitelist. This command can only be executed from the console.
Installation
- Download the latest version of OpLogin.
- Place the OpLogin.jar file into your server's plugins directory.
- Restart your server.
- The plugin will create config.yml and whitelist.yml files in the plugins/OpLogin directory.
Configuration
config.yml
This file is automatically managed by the plugin and will store OP passwords. You don't need to manually edit this file.
whitelist.yml
This file contains a list of commands that can be used without requiring login. By default, it includes:
whitelisted-commands:
- help
- oplogin
- list
- ping
You can modify this list to add or remove commands as needed.
Usage
Set a Password:
Use the /opsetpass <player> <password>
command from the console to assign a password to an OP.
Login:
OPs must use the /oplogin <password>
command to authenticate themselves upon joining the server.
Reset Password:
Use the /resetop <player>
command from the console to remove an OP's current password. The OP will need to set a new password.
Reload Configuration:
Use the /opreload
command from the console to reload both the password configuration and command whitelist.
Whitelisted Commands:
Commands listed in the whitelist.yml can be used by OPs without requiring login. Edit the whitelist.yml file to customize which commands are allowed.
Permissions
No specific permissions are required for basic operation. Commands are restricted to the console or OPs as described.
Compatibility
- Minecraft Versions: Tested on Minecraft 1.20 and newer.
- Server Software: Works with Spigot, Paper, and other Bukkit-compatible server software.