From f619bed5bc04405ddb44589fab47eae39b2ad6ae Mon Sep 17 00:00:00 2001 From: filoghost Date: Sat, 27 Jun 2020 15:31:05 +0200 Subject: [PATCH] Rewrite default custom-placeholders.yml and add example in menu --- .../main/resources/custom-placeholders.yml | 26 +++++++------------ Plugin/src/main/resources/menu/example.yml | 13 ++++++++++ 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/Plugin/src/main/resources/custom-placeholders.yml b/Plugin/src/main/resources/custom-placeholders.yml index da1dbc0..f32b8f0 100644 --- a/Plugin/src/main/resources/custom-placeholders.yml +++ b/Plugin/src/main/resources/custom-placeholders.yml @@ -1,21 +1,13 @@ # -# This is the configuration file for static placeholders. +# This is the configuration file for custom placeholders. # Dynamic placeholders are {online}, {max_players}, ... -# Static placeholders are symbols. # -# List of unicode symbols: http://www.fileformat.info/info/unicode/index.htm +# You can use these to avoid repeating text multiple times, +# and edit it from a single location. # -<3: \u2764 -[*]: \u2605 -[**]: \u2739 -[p]: \u2022 -[v]: \u2714 -[+]: \u25C6 -[++]: \u2726 -[x]: \u2588 -[/]: \u258C -[cross]: \u2720 -[arrow_right]: \u27A1 -[arrow_left]: \u2B05 -[arrow_up]: \u2B06 -[arrow_down]:\u2B07 \ No newline at end of file +# Another use would be for defining colors, symbols, or text decorations. +# +'{custom_placeholder}': 'This line is a custom placeholder.' +'{primary_color}': '&b' +'{secondary_color}': '&7' +'{separator}': '&8[====|====|====|====|====|====|====|====]' \ No newline at end of file diff --git a/Plugin/src/main/resources/menu/example.yml b/Plugin/src/main/resources/menu/example.yml index a6b6470..e12fe95 100644 --- a/Plugin/src/main/resources/menu/example.yml +++ b/Plugin/src/main/resources/menu/example.yml @@ -219,6 +219,19 @@ nbt-tags: NBT-DATA: '{display: {color: 8910400}}' +custom-placeholder: + MATERIAL: compass + POSITION-X: 6 + POSITION-Y: 2 + NAME: '{primary_color}Custom placeholders' + LORE: + - '{separator}' + - '{secondary_color}This item contains custom placeholders,' + - '{secondary_color}defined in custom-placeholders.yml.' + - '' + - '{custom_placeholder}' + + close-without-actions: MATERIAL: redstone lamp POSITION-X: 9