CommandPrompter
GitHubSpigotDiscordKofi
  • Welcome
  • Getting Started
    • Installation
    • Usage
    • Arguments
      • Prompt Argument
      • PromptQueue Argument
      • Prompt and PromptQueue Arguments
    • Commands and Permissions
  • Configuration
    • CommandPrompter Configuration
      • Prompt-Prefix
      • Prompt-Timeout
      • Cancel-Keyword
      • Enable-Permission
      • Update-Checker
      • Argument-Regex
      • Debug-Mode
      • Enable-Unsafe and Modification-Delay
      • Show-Completed-Command
      • Fancy-Logger
      • Ignored-Commands
      • Permission-Attachment
      • Command-Tab-Complete
      • Allowed-Commands-In-Prompt
      • Ignore MiniMessage
    • Prompts Configuration
      • Chat Prompt
        • Clickable-Cancel
        • Cancel-Message
        • Cancel-Hover-Message
        • Response-Listener-Priority
      • Player UI
        • Skull-Name-Format
        • Skull Custom Model Data
        • Size
        • Cache-Size
        • Cache-Delay
        • PlayerUI Control Items
        • Sorted
        • Per-World
        • Empty-Message
        • Filter-Format
      • Anvil UI
        • Enable-Title
        • Custom-Title
        • Prompt-Message
        • Item
        • Enchanted
      • Sign UI
        • Input-Field-Location
        • Material
    • Internationalization (I18N)
  • Prompts
    • Chat Prompt
    • Anvil UI Prompt
    • Player UI Prompt
    • Sign UI Prompt
  • Features
    • Permission Attachment
    • Input Validation
    • Post Command
    • Console Delegate
    • Player Delegate
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Configuration
  2. CommandPrompter Configuration

Allowed-Commands-In-Prompt

The Allowed-Commands-In-Prompt option defines a list of commands that CommandPrompter allows when a player executes another command while completing a prompt.

Usage

You can configure the Allowed-Commands-In-Prompt by editing the appropriate configuration file, typically named "config.yml" or similar, with the following:

Allowed-Commands-In-Prompt:
- sampleCommand
- sampleCommand2

In this example, the specified commands (sampleCommand, sampleCommand2) are allowed to be executed while completing a prompt.

Explanation

The Allowed-Commands-In-Prompt option is designed to control which commands are permitted when a player is in the process of completing a prompt. This allows users to execute specific commands without canceling the ongoing prompt, enhancing flexibility and user experience.

Example

To add or remove commands from the allowed list, modify the configuration as needed:

Allowed-Commands-In-Prompt:
- sampleCommand
- newCommand

This will update the list to allow the execution of newCommand in addition to the existing allowed commands.

Important Notes

  • Commands listed in Allowed-Commands-In-Prompt should not include the "/" prefix.

  • Allowed commands that contains prompts will still be blocked.

PreviousCommand-Tab-CompleteNextIgnore MiniMessage

Last updated 1 year ago

Was this helpful?