From 7cc0548c4078e38a2b5ce924d01f612fe620f1e2 Mon Sep 17 00:00:00 2001 From: Gabriel Dumitru Date: Fri, 9 Sep 2022 11:11:15 +0300 Subject: [PATCH 1/3] add placeholders for the attribute expansion https://api.extendedclip.com/expansions/attribute/ --- Placeholders.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Placeholders.md b/Placeholders.md index b461051..5180f39 100644 --- a/Placeholders.md +++ b/Placeholders.md @@ -20,6 +20,7 @@ If the command itself isn't there and `NO DOWNLOAD COMMAND` instead is shown, th - **[Animations](#animations)** - **[Armor](#armor)** - **[ASCII](#ascii)** + - **[Attribute](#attribute)** - ### **B** - **[BungeeCord](#bungeecord)** @@ -507,6 +508,26 @@ A majority of these Expansions are maintained by the PlaceholderAPI team and can ---- +- ### **Attribute** + > /papi ecloud download Attribute + + Adds placeholders to access [Attributes](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.htm). ([Minecraft wiki](https://minecraft.fandom.com/wiki/Attribute)] + **The expansion can be used only on 1.9+** + + ``` + // Available for all game versions + %attribute_player_has_% - whether the player has a certain attribute + %attribute_player_baseValue_% - returns the base value of an attribute + %attribute_player_value_% - returns the value of an attribute with all the modifiers applied + + // 1.11+ + %attribute_player_defaultValue_% - returns the default value of an attribute + ``` + + Ex: `%ascii_37%` returns `%` + +---- + - ### **BungeeCord** > /papi ecloud download Bungee From 4b275370d83fa254578a283b134436fef97b0179 Mon Sep 17 00:00:00 2001 From: Gabriel Dumitru Date: Fri, 9 Sep 2022 15:32:19 +0300 Subject: [PATCH 2/3] remove leftover --- Placeholders.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/Placeholders.md b/Placeholders.md index 5180f39..2bec776 100644 --- a/Placeholders.md +++ b/Placeholders.md @@ -523,8 +523,6 @@ A majority of these Expansions are maintained by the PlaceholderAPI team and can // 1.11+ %attribute_player_defaultValue_% - returns the default value of an attribute ``` - - Ex: `%ascii_37%` returns `%` ---- From 06d7ff9b48cf324a18d272cc52981906b247e135 Mon Sep 17 00:00:00 2001 From: Andre_601 Date: Fri, 9 Sep 2022 14:43:02 +0200 Subject: [PATCH 3/3] Correct minor typo --- Placeholders.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Placeholders.md b/Placeholders.md index 2bec776..cc6a170 100644 --- a/Placeholders.md +++ b/Placeholders.md @@ -511,7 +511,7 @@ A majority of these Expansions are maintained by the PlaceholderAPI team and can - ### **Attribute** > /papi ecloud download Attribute - Adds placeholders to access [Attributes](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.htm). ([Minecraft wiki](https://minecraft.fandom.com/wiki/Attribute)] + Adds placeholders to access [Attributes](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.html). ([Minecraft wiki](https://minecraft.fandom.com/wiki/Attribute)] **The expansion can be used only on 1.9+** ```