1
mirror of https://github.com/CarmJos/UserPrefix.git synced 2026-06-05 00:35:02 +08:00

YAML formatting

Fixed mapping values are not allowed in this context error.
This commit is contained in:
OskyEdz
2021-10-19 02:15:38 +02:00
committed by GitHub
parent b5a2199e1e
commit 2e4d1122d9
+25 -28
View File
@@ -29,43 +29,40 @@ itemHasPermission:
==: org.bukkit.inventory.ItemStack ==: org.bukkit.inventory.ItemStack
type: DIAMOND type: DIAMOND
meta: meta:
==: org.bukkit.inventory.ItemStack ==: ItemMeta
type: DIAMOND meta-type: UNSPECIFIC
meta: display-name: "§b§lVIP Prefix"
==: ItemMeta lore:
meta-type: UNSPECIFIC - ""
display-name: "§b§lVIP Prefix" - "§a➥ Click to use"
lore:
- ""
- "§a➥ Click to use"
# itemUsing [Unnecessary] # itemUsing [Unnecessary]
# This Item will be displayed when the prefix is selected. # This Item will be displayed when the prefix is selected.
# If there is no such configuration, it will automatically display "itemHasPermission". # If there is no such configuration, it will automatically display "itemHasPermission".
itemUsing: itemUsing:
==: org.bukkit.inventory.ItemStack ==: org.bukkit.inventory.ItemStack
type: DIAMOND type: DIAMOND
meta: meta:
==: ItemMeta ==: ItemMeta
meta-type: UNSPECIFIC meta-type: UNSPECIFIC
display-name: "§b§lVIP Prefix" display-name: "§b§lVIP Prefix"
enchants: enchants:
PROTECTION_ENVIRONMENTAL: 1 #Add an enchantment so it looks like its selected PROTECTION_ENVIRONMENTAL: 1 #Add an enchantment so it looks like its selected
lore: lore:
- "" - ""
- "§a✔ Selected" - "§a✔ Selected"
# itemNoPermission [Unnecessary] # itemNoPermission [Unnecessary]
# If player doesn't have the permission,this item will be displayed. # If player doesn't have the permission,this item will be displayed.
# If this item is not configured, it will not be displayed in the GUI when the player does not have permission to use it. # If this item is not configured, it will not be displayed in the GUI when the player does not have permission to use it.
itemNoPermission: itemNoPermission:
==: org.bukkit.inventory.ItemStack ==: org.bukkit.inventory.ItemStack
type: INK_SACK type: INK_SACK
damage: 8 damage: 8
meta: meta:
==: ItemMeta ==: ItemMeta
meta-type: UNSPECIFIC meta-type: UNSPECIFIC
display-name: "§b§lVIP §c(Buy it!)" display-name: "§b§lVIP §c(Buy it!)"
lore: lore:
- "" - ""
- "§e✯ Buy the VIP to use it!" - "§e✯ Buy the VIP to use it!"