CustomHead

How to use players' heads in GUI, Version v4.0

Variant 1

If you are using the HeadDatabase plugin, you can use hdb-<id>

Example

    join:
      material: 'hdb-38712'
      name: '&aJoin Queue Random Location'
      lore:
      - '&7Join the battle queue'
      - '&7for PvP.'
      - '&7Left click to enter with armor'
      - '&7Right click to enter with any equipment'
      model_data: 0
      # Should the item have enchantment glow?
      glow: false
      item_flags:
      - HIDE_ATTRIBUTES
      slot: 21

Variant 2

If you are using the Skulls plugin, you can use skulls-<id>

Example

    join_arena:
      material: 'skulls-450'
      name: '&aJoin Queue Arena'
      lore:
      - '&7Join the battle queue'
      - '&7for PvP Arena.'
      - '&7Left click to enter with armor'
      - '&7Right click to enter with any equipment'
      model_data: 0
      # Should the item have enchantment glow?
      glow: false
      item_flags:
      - HIDE_ATTRIBUTES
      slot: 23

Variant 3

You can also set a head using a texture with basehead-<texture>

Example

    exit:
      material: 'basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDgxYjJiYzhhMDNkMTBmM2JjNDJlOTI0NjYzMmNmMzQ5MmUzMWExNTg4MjdlYjVjNGI4ZTQ0NWNhYzY1MDlhZiJ9fX0='
      name: '&cLeave Queue'
      lore:
      - '&7Leave the queue'
      model_data: 0
      # Should the item have enchantment glow?
      glow: false
      item_flags:
      - HIDE_ATTRIBUTES

Variant 4

You can also set a head or another icon using the customitems.yml file with customitems-<key>

Example

    exit_arena:
      material: 'customitems-head'
      name: '&cLeave Queue'
      lore:
      - '&7Leave the queue'
      model_data: 0
      # Should the item have enchantment glow?
      glow: false
      item_flags:
      - HIDE_ATTRIBUTES

Last updated