HomeJavaModsloginPassword
loginPassword
ModsJava

loginPassword

by trim02 · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.8–26.1.2 · Velocity⬇ Download for 1.21–1.21.7 · Velocity⬇ Download for 1.21.8–26.1.2 · Folia⬇ Download for 1.21.8–26.1.2 · Paper
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Overview

This plugin is an alternative way to control access to a minecraft server, without using a whitelist.

This plugin can be installed either on your Velocity proxy or backend Paper server. If used on Velocity, a login server is required. If used on Paper, the server and client versions must be 1.21.7+

This is NOT a plugin that adds user registration or any of that other stuff you'll find by other authentication plugins on the web. This is a simple plugin to restrict access to your server, without having to maintain a whitelist or using discord integrations and whatnot.

Features

Configuration

If used on Velocity, you will need a server to function as a login server. Any minecraft server will do, but I recommend NanoLimbo, as it is extremely lightweight, and will only exist to facilitate login requests, you should also set the permission node velocity.command.server to false in your permission plugins default everyone group, otherwise players will be able to bypass the plugin

The plugin uses a TOML configuration file (config.toml) to manage its settings. Below are some of the configurable options, comments are included in the file:

core

core.bypass

core.bypass.methods

core.kick

messages

misc

Installation

Velocity

  1. Download the plugin JAR file.
  2. Place the JAR file in the plugins directory of your Velocity server.
  3. Start the server to generate the default configuration file.
  4. Edit the config.toml file in the plugins/LoginPassword directory to suit your needs.
  5. Configure velocity.toml by adding the login server to [servers] table. If you want ping-passthrough = "all" to work correctly, have only the hub server in the try = [] array, do not add the login server to the array. The plugin will handle redirecting players to the login server.
  6. Restart the server or run velocity reload to reload all plugins and apply the new velocity.toml.
  7. For future changes to config.toml, apply the changes using loginpassword reload

Paper

  1. Download the plugin JAR file.
  2. Place the JAR file in the plugins directory of your paper server.
  3. Start the server to generate the default configuration file.
  4. Edit the config.toml file in the plugins/LoginPassword directory to suit your needs.
  5. Restart the server or reload using /loginpassword reload to apply the new configuration.

Usage

Once installed and configured, the plugin will prompt players to enter a password upon connecting to the server. Depending on the configuration, players may only need to authenticate once. Administrators can manage permissions using LuckPerms or another permissions plugin to grant or revoke bypass permissions, or use the commands.

Commands

I encourage you to look at NanoLimbo's settings.yml as well, to see if there are any changes you want to make to the default join messages that appear.

Contributing

Open an issue or a pull request if you want.

License

This project is licensed under the GNU Lesser General Public License v2.1. See the LICENSE file for details.

Misc

Logo borrowed from twemoji, CC-BY 4.0.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more