Conditions
Conditions can be used to only have an object enabled if certain conditions are met.
Information on various types of conditions can be found here: Conditions
## This button only works for players with rank.vip permission
vipbutton1:
type: button
size: 256 128
color: green
## conditions that need to be met
conditions:
## checks if the player has the rank.vip permission
perm1:
type: permission
## permission to check
permission: 'rank.vip'
## Button can't be clicked if permissions aren't met
on-click:
sendmsg1:
type: send_message
message: 'You can only see this button and click it if you have the VIP rank!'
Last updated