AllowedCommands

Introduction

This is a basic plugin that was created to fulfil thisrequest. It allows you to specify which commands are allowed to be run - like a command whitelist instead of the more common command blacklist. It also allows you to change the default unknown command message.

Commands & Permissions

There is only one command: /ac reload - requires allowedcommands.reload permission - reloads the config. There is also an allowedcommands.bypass permission that allows players to execute commands that are not listed.

Example Configuration

# Set to false to disable the plugin
enabled: true
# Define the messages to send here
messages:
  no-permission: '&cYou''re not allowed to do this!'
  unknown-command: '&fUnknown command.'
# These are the commands that are allowed
allowed-commands:
  - ac
  - help
# Because of the way some plugins are made, they will falsly trigger an "unknown command" message. Add those commands here.
bad-commands:
  - /help
  - /paste

Source

You can find the source for this plugin on this GitHub page.


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

Bukkit