Conditional

A conditional function checks one or more conditions (if) and executes actions depending on whether they are met (do) or not (else).

function:
  if: hasPermission best.player.ever
  do: chatMessage <Congrats, you are the best player ever>
# Or with multiple conditions
function:
  if:
    - hasPermission best.out.of.ten
    - onlinePlayers 1-10

  do: 
    - chatMessage <Congrats you are the best player>

  else: 
    - chatMessage <Sorry you suck>

Last updated