Network Variable Equals

Description

Checks if a network variable equals a value. When it is false is explained on Conditions.

This condition requires MythicMobs Premium!

Attributes

Attribute Aliases Description Default
var variable, name, n, key, k Name of the variable. See Variable Names
value val, v The value the variable must equal. Can contain placeholders. See Value Attribute
scope s Whose variable, see Using the Conditions global

Value Attribute

value is compared according to the type of the stored variable:

  • Numbers are compared as numbers, so value=5 matches a DOUBLE variable that holds 5.0.
  • A STRING must match exactly, including letter case.
  • A LIST must have the same entries in the same order. A SET or a MAP can be in any order.
  • A BOOLEAN reads value the same way as when you set one, see Variable Types.

Put value in double quotes if it contains ;, for example value="gold=5;silver=12" for a MAP.

Examples

The message is sent only while the global STRING variable raid_phase is open.

RaidGate:
  Conditions:
  - networkVariableEquals{var=raid_phase;value=open} true
  Skills:
  - message{m="&aThe raid gate is open."} @PlayersInRadius{r=20}

Only players whose rank is veteran are greeted. ?~ tests the player who right-clicked the mob.

Gatekeeper:
  Type: VILLAGER
  Skills:
  - message{m="&6Welcome back, veteran."} @trigger ~onInteract ?~networkVariableEquals{var=rank;scope=target;value=veteran}

Aliases

  • netvarequals
  • netvareq
Updated Oct 29, 2026