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
  • The Player Delegate Command
  • Usage

Was this helpful?

Export as PDF
  1. Features

Player Delegate

PreviousConsole Delegate

Last updated 7 months ago

Was this helpful?

The player delegate command is derived from the feature. That means this command can only be called from the console.

The only difference is the format of the command (which requires an additional ), and after prompt completion, the completed command is executed as a player, not a console.

The Player Delegate Command

As I've mentioned before, this command can only be executed through the console. However, it's important to note that the completed command will be executed by the player.

Usage

The player delegate command has the following format:

playerdelegate <target_player> <permission attachment name> <command...> 

The last part of the command is a greedy argument, therefore anything past the permission attachment will be considered as a command.

Permission attachments are user-defined, however, if you don't want to use any, you can just pass NONE as the permission attachment.

Console Delegate
permission attachment