Sheets
  • Welcome
  • Getting Started
    • Quickstart
  • Configuration
    • Creating & Editing Menus
    • Buttons
    • Requirements
    • Text Formatting
Powered by GitBook
On this page
  • Key Features
  • Requirement Types
  • Condition
  • Permission
  • Balance
  • Item
  1. Configuration

Requirements

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

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

- permission: "essentials.fly"

- permission: "a.permission.needed"
- permission: "!a.permission.not.wanted"
  message: "You should not have this permission"

Balance

- balance: "100" # balance needed

- balance: "!100" # Balance the user should not have more than

Item

- item:
    amount: 1
    material: CHEST
    
- item:
    amount: 1
    material: DIAMOND
    name: "Special Diamond"
    
PreviousButtonsNextText Formatting

Last updated 3 months ago