Config Basics

How to configure your plugin

Default Config
config.yml
translations:
  - 'en-US'
check:
  redstoneAndRepeater: true
  observer: true
  piston: true
  comparator: true
  sculk: true
  ignoredWorlds:
    - world
  ignoredRegions: []

clock:
  endDelay: 300
  maxCount: 150
  autoBreak: true
  notifyAdmins: false
  notifyConsole: true
  drop: true

tps:
  interval: 2
  max: 20
  min: 15

notification:
  # Should be lowercase
  enabled:
    - console
    - admins
    - discord
    - sign
  discord:
    webhook: "_here_comes_the_webhook_url_"
    avatar: "https://cdn.modrinth.com/data/UWh9tyEa/ea7b1aded47652100a1f0e8673e87c124b38fc08_96.webp"
    # Should be a hex color code without the #
    color: 0xFF00FF
    description: |
      <red><bold>There is a redstone clock in <world> at <x>,<y>,<z></bold>
    fields:
      - name: "Teleport Command"
        value: "/teleport <x> <y> <z>"
        inline: true
      

  sign:
    material: OAK_SIGN
    # Should be a list of strings for each line of the sign
    # The max length of each line is 16 characters
    front:
      - "<red>RedstoneClocks!"
      - "<red>Are"
      - "<red>prohibited"
    back:
      - "<red>RedstoneClocks!"
      - "<red>Are"
      - "<red>prohibited"

Translations

config.yml
translations:
  - 'en-US'
# ... other config options

The translations field can contain multiple entries. Each entry represents a language for which messages are sent to administrators in Minecraft. As a user, you can also add your own translations. More information can be found here.

Each entry must follow the following standard:

https://developer.mozilla.org/en/docs/Glossary/BCP_47_language_tag

or as described here: https://en.wikipedia.org/wiki/IETF_language_tag

Example:

translations:
  - 'en-US' # American English
  - 'de-DE' # German
  - 'gsw-u-sd-chzh' # represents Swiss German as used in the Canton of Zurich

Check section

redstoneAndRepater

Last updated