configurations/Tricks Configurations

Tricks Configurations (tricks.yml)

Descriptions

This configurations file is for tricks customization and contains all actions which will be run when plugin started.

Each action will have following properties:

  • Action can optional contains Rules.
  • Action can be use multiple times.
  • Action contains rules will be run only when "all rules" are matched.
  • Each action contains their default value for each action option. That's mean, you don't need to set all action options.

Each rule will have following properties:

  • Rule can be use multiple times.
  • Rule will be matched when all rule options are matched.
  • Each rule contains their default value for each rule option. That's mean, you don't need to set all rule options.

File Structure

File structure of this configurations would be like this...

Action:
  [ActionHere]:
    [ActionOptions]: [Value]
    [ActionOptions]: [Value]
    [ActionOptions]: [Value]
    Rule:
      [RuleHere]:
        [RuleOption]: [Value]
        [RuleOption]: [Value]
      [RuleHere]:
        [RuleOption]: [Value]
        [RuleOption]: [Value]
  [ActionHere]:
    [ActionOptions]: [Value]
    [ActionOptions]: [Value]
    [ActionOptions]: [Value]
    Rule:
      [RuleHere]:
        [RuleOption]: [Value]
        [RuleOption]: [Value]
      [RuleHere]:
        [RuleOption]: [Value]
        [RuleOption]: [Value]
  [...]

Example:

Action:
  Break:
    ID: 2
    ItemDrop: true
    Visible: true
    Radius: 5
  Shuffle:
    PlayerInventory: true
    EnderChest: true
    Rule:
      Player:
        Sprint: true

Configurations

In order to config this file, you may need some yaml editor or normal editor. Please use "space" instead of "tab" to indent each options (usually it use 2 spaces/indent) or just follow Bukkit's yaml format (one you're using to config all plugin like config.yml).

  • Did you know? Each action and rule has their own page.