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

Merge pull request #3 from OskyEdz/patch-1

YAML formatting
This commit is contained in:
Carm
2021-10-19 10:16:04 +08:00
committed by GitHub
+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!"