🛍️
ShopSystem
  • 🏡Home page
  • DEFAULTS
    • 📩Installation
    • 🗒️Commands & Permissions
  • SETUP
    • 🛠️config.yml setup
    • 🛒Product
    • 🧊Item
    • 🖼️GUI
    • 📩Subscribtion system
    • 🎛️Conditions
    • 🌀Actions
    • 📃Placeholders (PAPI)
    • 🌈Hex colors
Powered by GitBook
On this page
  • Syntax
  • Type
  1. SETUP

Conditions

Syntax

# types:
# purchase_conditions (only for products)
# view_conditions (products and items)
#
<type>_conditions:
  condition_name: #your own condition name
    type: TYPE
    input: INPUT
    output: OUTPUT

Type

Type is a condition type. Here is list of all types.

Type
Information
Usage

hasPermission

Player have specific permission

type: hasPermission input: '<your permission>' output: null

!hasPermission

Player not have specific permission

type: !hasPermission input: '<your permission>' output: null

hasSubscribe

Player is subscribing to specific product

type: hasSubscribe input: '<product id>' output: null

!hasSubscribe

Player is not subscribing to specific product

type: !hasSubscribe input: '<product id>' output: null

>

input > output

type: > input: 'Placeholder/Number' output: 'Number'

<

input < output

type: < input: 'Placeholder/Number' output: 'Number'

>=

input > output OR input = output

type: >= input: 'Placeholder/Number' output: 'Number'

<=

input < output OR input = output

type: <= input: 'Placeholder/Number' output: 'Number'

==

input equals output

type: == input: 'Placeholder/Number' output: 'Number'

PreviousSubscribtion systemNextActions

Last updated 2 years ago

🎛️