Skip to content

Configuration

Justin_SGD edited this page Dec 27, 2021 · 4 revisions

Messages config

You can configure the messages in the messages.yml. You will find variables in the standard config. You can recognize them by these {} characters. The use of variables is that they replace an object.
Example: {prefix} = '&8[&eColored&bPrefix&8]'


Prefix config

You can manage prefixes in the Prefix Config. You can add, edit or delete prefixes. If you want to add a prefix, copy and paste a prefix path.
Example:
Before

{
  "resetPrefixEntry": {
    "enabled": true,
    "itemName": "&fPrefix zurücksetzen",
    "material": "BARRIER",
    "slot": 41
  },
  "prefixEntryList": [
    {
      "name": "Weißerprefix",
      "itemName": "&f&lWeißer Prefix",
      "itemLore": [
        "§7Vorschau: {prefix}",
        "&7",
        "{availability}"
      ],
      "permission": "prefix.weiß",
      "material": "WHITE_STAINED_GLASS_PANE",
      "interval": 1,
      "page": 1,
      "slot": 11,
      "headValue": "none",
      "colors": [
        "&f&l"
      ]
    }
  ]
}

After

{
  "resetPrefixEntry": {
    "enabled": true,
    "itemName": "&fPrefix zurücksetzen",
    "material": "BARRIER",
    "slot": 41
  },
  "prefixEntryList": [
    {
      "name": "Weißerprefix",
      "itemName": "&f&lWeißer Prefix",
      "itemLore": [
        "§7Vorschau: {prefix}",
        "&7",
        "{availability}"
      ],
      "permission": "prefix.weiß",
      "material": "WHITE_STAINED_GLASS_PANE",
      "interval": 1,
      "page": 1,
      "slot": 11,
      "headValue": "none",
      "colors": [
        "&f&l"
      ]
    },
    {
      "name": "Goldenerprefix",
      "itemName": "&6Goldener Prefix",
      "itemLore": [
        "§7Vorschau: {prefix}",
        "&7",
        "{availability}"
      ],
      "permission": "prefix.gold",
      "material": "ORANGE_STAINED_GLASS_PANE",
      "interval": 1,
      "page": 1,
      "slot": 12,
      "headValue": "none",
      "colors": [
        "&6"
      ]
    }
  ]
}

Prefix config keys

  • name:

The name is the name of the prefix. This has to be unique, otherwise there will be problems.

  • itemName:

The itemName is the name of the item in the inventory.

  • itemLore:

The itemLore is the description off the item. You can add and remove lines.

  • permission:

The permission is the right a player needs to be able to select this prefix.

  • material:

The material is the item that is in the inventory. You can find a list of materials here(1.17).

  • interval:

The interval regulates how many characters each color should be set.
Example:
interval: 1
Interval 1
interval: 2
Interval 2

  • slot:

The slot is the position of the item in the inventory.

  • headValue:

The headValue is the metadata of a head. The headValue only needs to be set if you have specified PLAYER_HEAD as the material. You can get head values ​​from this website.

  • colors:

The colors are color codes, which you can set as you wish.


Inventory config

In this config you can edit the prefix inventory.

{
  "inventoryEntryMap": {
    "PrefixGUI": {
      "name": "&6Prefix-Auswahl",
      "size": 45,
      "pages": 2,
      "fillInventory": true,
      "fillItemMaterial": "LIGHT_GRAY_STAINED_GLASS_PANE",
      "fillItemName": "&7",
      "previousItemMaterial": "PLAYER_HEAD",
      "previousHeadValue": "MHF_ArrowLeft",
      "previousName": "§8» &7Vorherige Seite",
      "previousItemSlot": 37,
      "nextItemMaterial": "PLAYER_HEAD",
      "nextHeadValue": "MHF_ArrowRight",
      "nextName": "&8» &7Nächste Seite",
      "nextItemSlot": 45
    }
  }
}

Clone this wiki locally