Skip to content

About

Modern command whitelist and clean tab-completion system powered by LuckPerms

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

⚡ NeaCommand

License: GPL v3 Java 21 Platform bStats Modrinth GitHub

Supported Tech Stack

Command whitelist and tab-completion filtering system integrated with LuckPerms.


Overview

NeaCommand is a command whitelist and tab-completion filtering plugin for Paper, Purpur, and Folia servers. It integrates with LuckPerms to resolve permissions and group inheritance without duplicate command configurations.

The plugin intercepts command and tab-completion packets directly, evaluating LuckPerms group inheritance and restricting unauthorized command visibility and execution.


Features

  • Command Whitelisting: Restricts command execution based on configured LuckPerms groups.
  • Inheritance Resolution: Inherits allowed commands across LuckPerms group hierarchies without duplicate definitions.
  • Tab-Completion Filtering: Filters tab-completion packets to hide unauthorized commands, namespace prefixes (minecraft:, essentials:, worldguard:), and discovery commands (/version, /plugins, /about).
  • World-Specific Whitelisting: Restrict commands to specific worlds using command@world syntax (e.g. /fly@hub).
  • Security Audit Logging: Asynchronous security logging to logs/blocked_commands.log recording player, UUID, world, and unauthorized attempts.
  • Staff Notifications: Sends MiniMessage alerts when a player attempts an unauthorized command, with clickable [ALLOW] actions to add the command to the player's group.
  • Permission Resolution: Resolves underlying plugin permissions and provides clickable [ADD PERMISSION] suggestions for LuckPerms.
  • Folia & Paper Support: Uses SchedulerUtils for thread-safe task scheduling across Paper, Purpur, and Folia regional tick architectures.
  • Localization: Includes English (en) and Spanish (es) translations with MiniMessage support.
  • bStats Telemetry: Anonymous usage metrics (Plugin ID: 34681).

Commands

Command Permission Description
/nc add <group> <command> [hidden] neacommand.admin Adds an allowed command to a group. Set hidden to true to allow usage while hiding it from tab-completion.
/nc remove <group> <command> neacommand.admin Removes an allowed command from a group.
/nc list <group> neacommand.admin Displays all currently whitelisted commands for the specified group.
/nc check <player> neacommand.admin Inspects a player's primary group, inherited groups, allowed command count, and bypass state.
/nc sync neacommand.admin Synchronizes configured groups with active LuckPerms groups.
/nc reload neacommand.admin Reloads config.yml, groups.yml, and language files without restarting.
/nc help neacommand.admin Displays the command guide and subcommands list.

Aliases: /neacommand, /nc, /nea


Permissions

Permission Default Description
neacommand.admin op Grants access to administrative commands (/nc reload, /nc add, /nc check, etc.).
neacommand.admin.notify op Receives clickable alerts when players try to execute blocked commands.
neacommand.bypass op Completely bypasses the command whitelist and tab-completion filtering.

Configuration Files

config.yml

# ----------------------------------------------------------------------
# NeaCommand - Main Configuration
# Advanced Command Whitelist & Tab-Completion Blocker powered by LuckPerms
# ----------------------------------------------------------------------

# Selected language file located inside the 'lang/' directory.
# Available out of the box: 'en' (English), 'es' (Spanish).
language: "en"

# Enable debug mode to log command verification and group lookups in console.
debug-mode: false

# If true, server operators (OP) automatically bypass all whitelist rules.
bypass-op: true

# Enable anonymous metrics collection via bStats.
metrics: true

# Commands that are ALWAYS accessible to all players, regardless of their group.
# Essential for authentication plugins, basic lobby commands, or aliases.
# Do NOT include the leading '/' character.
global-whitelist:
  - "login"
  - "register"
  - "l"
  - "reg"
  - "neacommand"
  - "nc"
  - "nea"

groups.yml

# ----------------------------------------------------------------------
# NeaCommand - Groups Configuration
# Command whitelist mapped directly to LuckPerms group names.
#
# Syntax Guide:
#   - "/command"         : Player can run this command and it appears in Tab-Complete.
#   - "/command:hidden"  : Player can run this command, but it remains HIDDEN from Tab-Complete.
#   - "/warp spawn"      : Allows execution of that specific subcommand.
#   - "*"                : Grants access to all commands (bypass).
#
# Note: LuckPerms inheritance is automatically applied!
# For example, if 'vip' inherits from 'default' in LuckPerms,
# VIP players automatically gain access to all commands in 'default'.
# ----------------------------------------------------------------------

groups:
  default:
    commands:
      - "/help"
      - "/rules"
      - "/spawn"
      - "/msg"
      - "/r"
      - "/tpa"
      - "/tpaccept"
      - "/tpdeny"
      - "/pay"
      - "/balance"
      - "/baltop"
  vip:
    commands:
      - "/fly"
      - "/feed"
      - "/hat"
      - "/workbench"
  staff:
    commands:
      - "/kick"
      - "/mute"
      - "/ban"
      - "/warn"
      - "/vanish:hidden"

Requirements

  • Platform: Paper, Purpur, or Folia (1.20 - 1.21.4+)
  • Java: Java 21 or newer
  • Dependencies: LuckPerms (v5.4+)

Compiling from Source

Requires Java 21 and Maven:

git clone https://github.com/NeaCol/NeaCommand.git
cd NeaCommand
mvn clean package

The resulting JAR will be located in the target/ directory.


Author & Links

About

Modern command whitelist and clean tab-completion system powered by LuckPerms

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages