Username Remap
Changes the username of certain connecting clients.
Username Remap requires the Fabric modloader.
Installation
- Download Username Remap from CurseForge or GitHub.
- Place the downloaded file in your
mods
folder.
Configuration
The configuration can be edited in the config/usernameremap.json
file. While there is partial support for Mod Menu mod, it is limited to the fallback username configuration only.
Usage
By default, this mod makes no changes to usernames. However, it can be configured to change a specific username to another username, or set a global default username.
Why does this not work on servers?
What do you mean? It works on 1.16.5 servers just fine. On 1.17, you may need to install a newer version of Cloth Config.
Tested on 1.16.2 and doesn't seem to work. Used the example config and changed the older username and new username to an actual user (who had never logged into the server before) and when he logged in, no dice. Old username still showed.
Is there a reload function or do you have to restart the server?
There is no built-in reload function but if there is any compatible with Auto Config (like Cloth Config does for clients), then it will update accordingly. Otherwise, you will need to restart your server.
Say I want to frequently change my username on a server. If I update the file, and log off, will the server have to restart in order to show the changed username?
Yes, unfortunately
How do you fill out the config file?
There is a case-sensitive key->value map and a fallback like so. Both are optional, so an empty config would make the mod not have any functionality.
{
"remappedUsernames": {
"oldUsernameA": "newUsernameA",
"oldUsernameB": "newUsernameB"
},
"fallbackUsername": "defaultUsernameForUsernamesThatAreNotOldUsernameAOrOldUsernameB"
}
In reply to haykam:
Thank you!!!
In reply to haykam:
Wait, what is the purpose of fallbackUsername? Are you saying that everyone who joins who doesn't have a mapping will have the same username? What if we don't want that. I only want to remap a few usernames and leave everyone else alone, is that possible?
If you remove the option from the config, it will not be used and people who do not have a username in the map will just use their normal username.
In reply to haykam:
Awesome. Does it support 1.16.2, or only 1.16.3?
I've tested it on 1.16.3, but it will most likely work on 1.16.2 as well.
Oooh... New mod....