CommandBridge 1.7.1 Help

Permissions

CommandBridge uses permissions to control access to its features. To properly use these permissions, you need to understand where the commands are dispatched and set the permissions accordingly. Using a permission plugin (such as LuckPerms) can help manage these permissions. Here's a detailed breakdown:

Command Permissions

  • commandbridge.command.<specific-command-name> - Allows players to use the specific CommandBridge command. This permission needs to be set on the server where the command is dispatched:

    • Velocity Side: If the command is dispatched on the Velocity server, you need to set this permission on the Velocity server.

    • Bukkit Side: If you have a script on the Bukkit server that dispatches the command, you need to set this permission on the Bukkit server.

Admin Permissions

  • commandbridge.admin - Allows players to access the CommandBridge admin commands. This includes commands such as /commandbridge reload, /commandbridge version, and /commandbridge help. This admin permission must be set on the Velocity side only. There is no need to set this permission on the Bukkit side.

Setting Up Permissions

Step 1: Install a Permission Plugin

Ensure you have a permission plugin installed on both your Velocity and Bukkit servers. LuckPerms is a popular choice and supports database synchronization.

Step 2: Configure the Plugin

Configure the permission plugin to use a shared database or another method to sync permissions across your servers if desired. This step is optional but can be useful for ease of management.

Step 3: Grant Permissions

Assign the necessary permissions to players or groups based on where the command is dispatched:

For Command Permissions (commandbridge.command.<specific-command-name>)

  • Velocity Server: If the command is dispatched on the Velocity server, set the permission on the Velocity server.

  • Bukkit Server: If the command is dispatched on the Bukkit server, set the permission on the Bukkit server.

For Admin Permissions (commandbridge.admin)

  • Velocity Server: Set this permission on the Velocity server only.

Example Permissions

Example 1: Command Dispatched on the Velocity Server

For a command named examplecommand dispatched on the Velocity server, you would run the following commands on the Velocity server:

# On the Velocity server /lp user <username> permission set commandbridge.command.examplecommand true

Example 2: Command Dispatched on the Bukkit Server

For a command named examplebukkit dispatched on the Bukkit server, you would run the following command on the Bukkit server:

# On the Bukkit server /lp user <username> permission set commandbridge.command.examplebukkit true

By following these steps, you can ensure that players have the appropriate permissions to use CommandBridge commands and admin features based on where the commands are dispatched in your network.

Last modified: 25 August 2024