Skip to content

Tutorial Config

Multitallented edited this page Mar 16, 2021 · 5 revisions

Below is an example of a tutorial step from the default path:

default:
  steps:
    - type: build
      region: shelter
      rewards:
        commands:
          - '^!give $name$ DIRT 4'
        permissions:
          - '^!civs.shop'
        items:
          - BEEF*32
        money: 150

Rewards

Commands

Executes the command when the step is completed. Use $name$ placeholder for the player's name. For regions, this will be the primary owner of the region. Appending a ! to the front of the command means that the command will be run from the console. Appending a ^ to the front of the command means the command will be run with OP permissions.

Permissions

Gives permissions when the step is completed. Appending a ! to the front of the permission means that you want to remove the permission instead of add it. Appending a ^ to the front of the permission means that you want to add the permission only for as long as the player is online. Automatically removes the permission when they log out or the server restarts.

Items

Gives the items to the player (or drops them on the ground if their inventory is full). Does not work if the player is offline (so maybe don't do this with the upkeep step type). Uses the same system as the regions for item creation, so you can give named items this way.

Money

Works for online and offline players.