Conditions and Criterias
What is this?
This option decides whether an action is allowed to be done or not.
Based on the example above, the condition is accepted if the player is owned of the waystone, or has the permission fancywaystones.admin
Criterias
RANDOM
Random will accept condition in percentage chance. The options are:
Chance
the percentage chance of the condition will be accepted
For example:
The example above will accept the condition if the player is lucky enough to have the 69% chance.
ENCHANTED
Enchanted will accept the condition if the player is holding any item that is enchanted. The options are:
Type
the enchantment type. (See https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html)Level
the minimum enchantment level
For example:
The example above will accept the condition if the player is holding any tool with silk touch enchantment (minimum level 1)
EFFECT
Effect will accept the condition if the player is having a potion effect. The options are:
Type
the potion effect type. (See https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html)Level
the minimum amplifier level
For example:
The example above will accept the condition if the player has Dolphin grace effect.
LAND_ACCESS
Land access will accept the condition if the player has the access to build on that region.
For example:
HAS_LAND_ACCESS
Same as Land Access
IS_MEMBER
Is Member will accept if the player is whitelisted on the waystone
For example:
HAS_PERMISSION
will accept if the player has the permission required
For example:
IS_OWNER
will accept if the player is the owner of the waystone
For example:
IS_EXPLOSION
will accept if the condition occurred by an explosion (TNT, Creeper, etc)
For example:
WORLD_WHITELIST
will accept if the condition occurred in the world that is listed.
For example:
TYPE_WHITELIST
will accept the condition if the waystone type is listed.
For example:
WHITELISTED_ENTITIES
OFFSET_DISTANCE
will accept if the offset distance set by the player for the waystone is in a specific range of distance.
Min Distance
the minimum distance of the offset distanceMax Distance
the maximum distance of the offset distance
IS_HOLDING
will accept if the player is holding the item specified in the config
The Display Name
option is used to alter the display name for the item when shown in the chat. This option is optional.
LOGIC_NEGATE
will negate the condition. If the criteria inside accept the condition, it will negate it.
The example above will accept the condition if the player is NOT holding a dirt.
LOGIC_OR
will accept the condition if any of the criteria inside accept the condition.
The example above will accept the condition if the player has speed effect OR if the player has jump effect.
LOGIC_AND
Similar to logic_or, but will accept if all of the criteria inside accept the condition.
The example above will accept the condition if the player is holding a diamond pickaxe and (enchanted with silk touch or has fast mining effect)
IS_ENVIRONMENT
will accept if the condition occurred in an environment
HAS_CONTEXT
will accept if the condition occurred in a context
The example above will accept the condition if there is Warpstone Context. In other words, the player will be teleported if theyre using warpstone to teleport to the waystone.
STRING_MATCHES
If you are using PlaceholderAPI, you can use this to test if the value of 2 placeholders is the same.
ALWAYS
always accept the condition
NEVER
never accept the condition
IS_WAYSTONE_ACTIVATED
will accept if the waystone is activated, similar to IS_MEMBER but only if the player actually discover it.
IS_NATURAL
will accept if the waystone is generated naturally using structure
IS_SAME_TYPE
will accept if the target waystone and the source waystone is the same type
IS_SAME_WORLD
will accept if the teleportation occurred in the same world
IS_SAME_SERVER
will accept if the teleportation occurred in the same server
IS_SAME_DIMENSION
will accept if the teleportation occurred in the same dimension
Last updated