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

Power: Command Hit

Full Name: rpgitems:commandhit

Providing Plugin: RPGItems

Default Trigger: HIT.
All available Trigger: HIT, LIVINGENTITY.

Description

Run a command when hits someting.

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.

  • minDamage

    • Type: double
    • Default: 0.0

    Minimum damage to trigger

  • 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: HIT

    Triggers of this power.

Example

Note

Clone this wiki locally