Skip to content
Liqueur Librazy edited this page Oct 27, 2019 · 4 revisions

Power: Command

Full Name: rpgitems:command

Providing Plugin: RPGItems

Default Trigger: RIGHT_CLICK.
All available Trigger: ATTACHMENT, BOW_SHOOT, HIT_TAKEN, HURT, LEFT_CLICK, OFFHAND_CLICK, RIGHT_CLICK, SNEAK, SPRINT.

Description

Run a command on click.

Properties

  • command

    • Type: String

    Command to be executed

  • conditions

    • Type: Set<String>

    Conditions of this power.

  • cooldown

    • Type: int
    • Required

    Cooldown of the power, in ticks.

  • cost

    • Type: int
    • Default: 0

    Durability cost of the power.

  • display

    • Type: String
    • Required

    Display text of this power.

  • permission

    • Type: String

    Permission that will be given to user executing command

  • requireHurtByEntity

    • Type: boolean
    • Default: true

    Whether only run this power when hurt by entity.

  • triggers

    • Type: Set<Trigger>
    • Default: RIGHT_CLICK

    Triggers of this power.

Example

Note

Clone this wiki locally