Page cover image

Conditions

You can set conditions before performing certain actions.

You can set conditions to check certain DeluxeTeleport events/actions. See each feature's settings to learn how you can use them.

conditions:
  minimum_requirements: 1
  condition1:
    type: has permission
    enabled: true
    optional: false
    permission: deluxeteleport.permission

You can perform actions if the condition inside success_actions and deny_actions is met or not.

conditions:
  minimum_requirements: 1
  condition1:
    type: has permission
    enabled: true
    optional: false
    permission: deluxeteleport.permission
    succes_actions:
      actions:
        message:
          type: message
          message: "&aThe condition is met."
    deny_actions:
      actions:
        message:
          type: message
          message: "&cThe condition is not met."      

Minimum requirements

You can use minimum_requirements to only meet a certain number of conditions and not all of them. If you don't want this, just delete this option.

Has permission

Checks if the player has the specified permission.

To invert the requirement (Check if the player doesn't have the permission) you can simply add the exclamation mark before the type name (like this type: "!has permission").

type: has permission
permission: TEXT

Has money

Checks if the player has the specified amount of money (Vault is required).

To invert the requirement (Check if the player doesn't have the amount of money) you can simply add the exclamation mark before the type name (like this type: "!has money").

To use a placeholder as a value for the amount, replace the amount: field with placeholder:.

type: has money
amount: #

Has Exp

Checks if the player has the exp level or points.

If the level option does not exist, it will check for exp points by default

To invert the requirement (Check if the input doesn't match the output) you can simply add the exclamation mark before the type name (like this type: "!has exp").

type: has exp
amount: #
level: boolean # true if you want to check for exp levels, false for exp points

Is Near

Checks if the player is within distance of location.

To invert the requirement (Check if the input doesn't match the output) you can simply add the exclamation mark before the type name (like this type: "!is near").

type: is near
location: "WORLDNAME,X,Y,Z"
distance: #

String Equals

Checks if input: matches output: (Case sensitive).

To invert the requirement (Check if the input doesn't match the output) you can simply add the exclamation mark before the type name (like this type: "!string equals").

type: string equals
input: "TEXT"
output: "TEXT"

Example:

type: string equals
input: "%home_name%"
output: "Bed"

String Equals Ignore Case

Checks if input: matches output: (Case insensitive).

To invert the requirement (Check if the input doesn't match the output) you can simply add the exclamation mark before the type name (like this type: "!string equals ignorecase").

type: string equals ignorecase
input: "TEXT"
output: "TEXT"

Example:

type: string equals ignorecase
input: "%server_name%"
output: "helpchat"

String Contains

Checks if input: contains output: (Case sensitive).

To invert the requirement (Check if the input doesn't contain the output) you can simply add the exclamation mark before the type name (like this type: "!string contains").

type: string contains
input: "TEXT"
output: "TEXT"

Example:

type: string contains
input: "%server_name%"
output: "chat"

Comparators

Compares input: with output:.

Now both the input and the output support floating point values.

type: (==, >=, <=, !=, >, <)
input: #
output: #

Available options

Comparator

Description

==

input: equals to output:

>=

input: greater than or equals to output:

<=

input: less than or equals to output:

!=

input: not equals to output:

>

input: greater than output:

<

input: less than output:

Last updated

Was this helpful?