HomeJavaModsNameGuard
NameGuard
ModsJava

NameGuard

by envizar · 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.2–1.21.11 · BungeeCord⬇ Download for 1.21.2–1.21.11 · Paper⬇ Download for 1.21.2–1.21.11 · Purpur⬇ Download for 1.21.2–1.21.11 · Waterfall
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.

NameGuard

Russian README

A plugin for blocking nicknames and adding additional checks for privileged accounts.

Whitelist

All access rules are described declaratively in the access-groups.yml file.

# Group name. Can be anything and will be shown in logs if logging is enabled
group:
  
  # If disabled, the group will be ignored
  enabled: false

  # Enable logging for failed join attempts
  log-to-console: true

  # MiniMessage supported
  kick-message: "<red>Access denied"
  
  # Access rules
  access-rules:
    - "vhost:access.myserver.com"
    - "ip:192.168.1.120"
    - "subnet:127.0.0.1/24"

  match:
    # If enabled, any player will be checked against this group
    everything: false

    # If the nickname is in this list, the player will be checked against this group
    nicknames:
      - owner
      - helper

    # If the nickname matches at least one regex pattern from the list,
    # the player will be checked against this group
    patterns:
      - "b[a4]d_?w[o0]rd"

If a player is checked by a group and does not pass any access rule, the join attempt is denied with the kick-message, and a corresponding message is logged to the console if log-to-console is enabled.

If a player is checked by a group and passes at least one access rule, the player is allowed to join, and all further checks are skipped.

The order in which groups are checked is determined by their order in the file.

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