Skip to content

A very simple Pumpkin plugin that allows server admins to limit the use of certain commands to select players

License

Notifications You must be signed in to change notification settings

PumpkinPlugins/CommandLimiter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command Limiter

Build Status

A simple Pumpkin plugin that allows admins to limit access to certain commands to certain players.

Installing

PumpkinPlugins provides prebuilt plugin binaries for the most common platforms and architectures. If your host is among these, it is enough to download the appropriate binary and place it in the plugins directory of your Pumpkin server.

Platform Architecture Download
Linux amd64 Download
Linux arm64 Download
Windows amd64 Download

If your host is not among these, you will need to build the plugin yourself. To do this, you will need to have Rust installed on your system. Once you have Rust installed, you can clone this repository and run cargo build --release in the root directory of the repository. The compiled binary will be located at target/release/libcommand_limiter.so on Linux, target/release/command_limiter.dll on Windows, and target/release/libcommand_limiter.dylib on macOS.

Configuration

The plugin configuration is stored in the config.json file in the plugins/command_limiter directory. The configuration file is created automatically when the plugin is loaded for the first time. The configuration follows the JSON format and has the following structure:

{
  "commands": [
    {
      "command": "command_name",
      "blacklist": false,
      "allowed": [
        "player1",
        "player2"
      ]
    }
  ],
  "block_message": "You are not allowed to use this command."
}

The configuration can also be modified in-game using commands.

Usage

The plugin provides the following commands:

Command Aliases Description Permission
/limitcommand <command> (blacklist) (players) /limit, /lc Limits access to a command to certain players. OP level 4

The /limitcommand command can either be executed just with the command name, which will automatically blacklist everyone from using it, or with all three arguments. The blacklist argument is a boolean that determines whether the players listed in the players argument should be blacklisted or whitelisted. The players argument is a list of player names separated by commas.

About

A very simple Pumpkin plugin that allows server admins to limit the use of certain commands to select players

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages