Skip to content

Instantly share code, notes, and snippets.

@moxwel
Last active February 24, 2023 12:46
Show Gist options
  • Save moxwel/542635681a7f3d13287c54cfd805e13b to your computer and use it in GitHub Desktop.
Save moxwel/542635681a7f3d13287c54cfd805e13b to your computer and use it in GitHub Desktop.
Setup EasyCommandBlocker for Minecraft Server

#4 | EasyCommandBlocker plugin setup for Minecraft Server

πŸ“š Index
  1. minecraft_server_crossplay.md GitHub Gist last commit

  2. minecraft_server_luckperms.md GitHub Gist last commit

  3. minecraft_server_authme.md GitHub Gist last commit

  4. ➑ minecraft_server_easycommandblocker.md GitHub Gist last commit


Using PaperMC as backend server (version 1.14.4) and Velocity as proxy with "modern" forwarding.

Requieres ProtocolLib installed on backend server.

If using proxy, must be installed on proxy as well to manage tab-completion of proxy commands.

This plugin only manages tab-completion menu for Minecraft 1.13+. If you want to block commands, you should use LuckPerms.

Config

Assuming installed plugins and permissions according to this guide.

  • πŸ”€ /velocity/plugins/easycommandblocker/config.yml:

    tab:
      default:
        priority: 100
        commands:
          - "/linkaccount"
          - "/unlinkaccount"
          - "/advancements"
          - "/offhand"
  • πŸ“ƒ /paper/plugins/easycommandblocker/config.yml:

    tab:
      default:
        priority: 100
        commands:
          - "/?"
          - "/help"
          - "/me"
          - "/msg"
          - "/list"
          - "/changepassword"
          - "/login"
          - "/register"
    
      operator:
        priority: 200
        extends: default
        commands:
          - "/kill"
          - "/gamemode"
          - "/gamerule"
          - "/xp"
          - "/fill"
          - "/enchant"
          - "/effect"
          - "/difficulty"
          - "/give"
          - "/time"
          - "/tp"
          - "/kick"
          - "/ban"
          - "/ban-ip"
          - "/banlist"
          - "/pardon"
          - "/pardon-ip"
          - "/worldborder"
          - "/locate"
          - "/weather"
          - "/summon"
          - "/clear"
          - "/advancement"
          - "/scoreboard"
          - "/playsound"
          - "/say"
          - "/tellraw"
          - "/lp"
          - "/promote"
          - "/demote"
    
    blocked_command_default_actions:
      - "message: &8[&b&lECB&8] &cYou don't have permissions to use that command."
    
    use_commands_as_whitelist: false
    commands: {}
    custom_commands_actions: {}

With this setup, tab auto-complete will "emulate" vanilla behavior.

πŸ“ƒ Permissions (backend server)

  • Groups: default - operator
defaultoperator
easycommandblocker.tab.defaultβœ”οΈeasycommandblocker.tab.operatorβœ”οΈ

Append to current permissions.

πŸ”€ Permissions (proxy server)

  • Groups: default
default
easycommandblocker.tab.defaultβœ”οΈ

Append to current permissions.

⬆ Go to top

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment