ConditionEntity

stringEquals

since v4.6

Checks if value1 equals value2. Both values can use variables and placeholders.

Aliases

stringEq

Configuration Fields (2)

NameTypeDefaultDescription
value1
val1, v1
PlaceholderString
value2
val2, v2
PlaceholderString

Examples & Notes

Examples

  Conditions:
  - stringequals{val1="yes!";val2="yes!"} true
  Conditions:
  - stringequals{val1="%denizen_<player[<trigger.uuid>].item_in_hand.has_nbt[special_item]>%";val2="true"} true

Uses Denizen, PlaceholderAPI, and MythicMobs to check whether the item the player is holding has a Denizen NBT key of “special_item.” <trigger.uuid> is a MythicMobs placeholder that gets parsed before PlaceholderAPI parses the Denizen tag.

  Conditions:
  - stringequals{val1="%denizen_<player[<trigger.uuid>].item_in_hand.raw_nbt.get[mythic_type].after[string:]>%";val2="SomeMythicItem"} true

Universal Condition Options

Author:
Ashijin
Community-maintained documentation for the Mythic plugin ecosystem.