Cross-platform Actions

These actions are cross-compatible with Spigot, Velocity, and BungeeCord.

chevron-rightDelayhashtag

Execute action after a delay

action:
    +: TJAction
    delay_1:
        message: "wtf" # This message will be sent after 10 seconds
        delay: "10s"
chevron-rightGrouphashtag

Group multiple actions together. Recommended to use with other actions.

action:
    +: TJAction
    random_1:
        message_1: "&cYou didn’t win :("
        group_1:
            message_1: "&aCongratulations! You got &bDiamonds &fx10&a!"
            console_1: "give %player_name% diamond 10"
chevron-rightLoophashtag

Repeating fun?

action:
    +: TJAction
    loop_1:
        time: "3" # This parameter accepts expressions, so '' is required.
        message: "&eI will run three times."
chevron-rightRandomhashtag

Pick N from multiple?

action:
    +: TJAction
    random_1:
        amount: 1 # (Number of selected results, optional)
        message_1: "&aI am number one."
        message_2: "&eI am number two."
        message_3: "&cI am number three."
chevron-rightSethashtag

Set a variable to the result of an expression (see If section).

Variables only exist in memory and will be lost after reboot.

action:
    +: TJAction
    set_1:
        id: "hello"
        expr: "%player_y% > 63"
        keep: false # Set only if not already exists (optional)
    if_1:
        expr: "{hello}" # Use "{var_name}" to access custom variable
        y:
            message: "&bYou are above sea level!"
        n:
            message: "&cYou are below sea level!"
chevron-rightBroadcasthashtag

Delegate the action to all players

action:
    +: TJAction
    broadcast:
        message: "Now, everyone knows I’m noisy ><"
chevron-rightAsConsolehashtag

Delegate the action to the console

chevron-rightFunctionhashtag

Execute a plugin-registered function

Conditional Actions

chevron-rightHasPermhashtag

Checks if the player has permission

chevron-rightAndhashtag

Logical AND

chevron-rightOrhashtag

Logical OR

chevron-rightCheckhashtag

Multiple conditions check

chevron-rightIfhashtag

If?

chevron-rightNothashtag

Logical NOT

Last updated