markdownRequirements

Requirements enables conditional checks based on various parameters, such as player permissions, numeric values, and custom conditions. can be used on click or view on requirements of buttons

circle-info

Requirement object is the same for view and click requirements, which means you can put it anywhere you need

Key Features

  • Mathematical Expression Evaluation: Easily evaluate mathematical expressions like addition, subtraction, multiplication, and division.

  • Variable Support: Define and use variables in expressions for dynamic calculations.

  • Built-in Functions: Use functions like sin, cos, sqrt, and log for advanced math.

  • Support for Multiple requirement types

  • Accepts a message action

Requirement Types

Type

condition

permission

balance

item

Condition

- "3 + 4 * 5 = 23"

- "{x} * {y} + 2 = 1"

- condition: "%essentials_afk% = yes"
  message: "You are not afk"

Permission

Balance

Item

Last updated