Config usage

Usage of the KeyAllZ Config

The new config supports multiple KeyAll types in one file. Each type can have its own messages, sounds, commands, permissions, and reminders. Example:

keyalls:
  example:
    title: "<green>You received a KeyAll reward!"
    actionbar: "<yellow>Enjoy your free key!"
    chat: "<gray>[KeyAll] <aqua>Congrats %player%, you got a reward!"
    sound: "minecraft:entity.player.levelup"
    sound-volume: 1.0
    sound-pitch: 1.0

    # Commands run as the player receiving the KeyAll
    player-commands:
      - "warp crates"
      - "say I just got a key!"

    # Commands run from console
    # Prefix with PLAYER: to run it for each player individually
    console-commands:
      - "PLAYER: crate key give %player% test 1"

    permission: "keyall.receive.example"

    reminders:
      enabled: true
      interval: 600
      message: "<yellow>Don't forget to claim your KeyAll! Time left: %remaining-time%"

Notes:

  • player-commands run as the player.,

  • console-commands run from console.,

  • Using PLAYER: in console commands makes it run for each player individually.,

  • %player% is replaced with the player’s name.,

  • You can create multiple KeyAll types (votekey, donorkey, etc.) in the same file.,

Last updated