From d3a3b9d4d7cf917e29dd4642b465656ca394669f Mon Sep 17 00:00:00 2001 From: Archy-X Date: Fri, 3 May 2024 15:27:08 -0400 Subject: [PATCH] 2.0.9 Release --- Changelog.md | 53 +++++++++++++++++++ api-bukkit/build.gradle.kts | 2 +- .../main/resources/messages/messages_fr.yml | 2 +- gradle.properties | 2 +- 4 files changed, 56 insertions(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index d3fa018c4..e7e875e1c 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,59 @@ Changelog for versions since 2.0.0. +## 2.0.9 + +Note: If you are using the 15 skill legacy preset and previously updated to 2.0.8, your sources files for alchemy, agility, and enchanting may have been forcefully updated to include duplicate sources due to a bug in source updating. While this update fixes the bug going forward, you may have to manually remove sources that are duplicated with healing, endurance, and forging, respectively. + +### New Features +- Add menu conditions system + - Conditions on items are used to add requirements for viewing or clicking an item + - View conditions will hide the item if not all conditions are met + - View conditions are added with a `view_conditions` key under an item + - Click conditions will prevent click actions or built-in click behavior from running if not all conditions are met + - Click conditions are added using the `on_click_conditions` key, or for a specific button trigger like `on_right_click_conditions` + - The syntax for any condition key is a map list of conditions that all must be met. This is similar to the click actions syntax. + - Permission condition type: + - Permission conditions check if the player has a permission + - Uses `type: permission` (optional due to auto type detection) + - Must specify a `permission` key for the permission node to check + - An optional boolean `value` can be specified (defaults to true) + - Placeholder condition type: + - Placeholder conditions compare two values that can contain PlaceholderAPI placeholders + - Uses `type: placeholder` (optional due to auto type detection) + - Must specify a `placeholder` string key as the left side value to be compared + - Must specify a `value` string key as the right side value to be compared + - An optional `compare` string can be specified for the type of comparison operation to perform (defaults to equals) + - `equals` checks for numerical or string equality + - `greater_than` checks if `placeholder` is strictly greater than `value` + - `greater_than_or_equals` checks if `placeholder` is greater than or equal to `value` + - `less_than` checks if `placeholder` is strictly less than `value` + - `less_than_or_equals` checks if `placeholder` is less than or equal to `value` + - Any `compare` other than `equals` requires both `placeholder` and `value` to be evaluated to doubles +- Add menu `on_open` and `on_close` actions for running actions when a menu is opened or closed + - These are map lists of actions defined directly in the top-level of the menu file + - `on_close` will run even if the player switches to a different menu immediately +- Add sound menu action + - Plays a sound for a player + - Uses `type: sound` (optional due to auto type detection) + - Must specify a `sound` string key as the sound type to player. This uses the vanilla names matching the /playsound command. + - An optional `category` string can be specified (defaults to master) + - An optional `volume` number can be specified (defaults to 1) + - An optional `pitch` number can be specified (defaults to 1) +- Add syntax to duplicate default menu items with placeholders + - Creating a new item with a name in the format `item_name(1)` will replace all the display_name and lore placeholders exactly like the default `item_name`. + - Any number can be used within the parenthesis + - This is useful for duplicating default items across multiple slots with different materials and custom_model_data for resource packs +- Add syntax for duplicating the exact same menu item easily across multiple slots + - Specify a list of slot values with the `pos` key instead of a single value + +### Changes +- Click action types will now be automatically detected, so specifying a `type` is no longer required + +### Bug Fixes +- Fix duplicate source updating for legacy preset +- Fix command actions not working without PlaceholderAPI + ## 2.0.8 ### New Features diff --git a/api-bukkit/build.gradle.kts b/api-bukkit/build.gradle.kts index 4ab5fa6b0..bbab1c5f0 100644 --- a/api-bukkit/build.gradle.kts +++ b/api-bukkit/build.gradle.kts @@ -15,7 +15,7 @@ repositories { dependencies { api(project(":api")) - api("dev.aurelium:slate:1.0.5-SNAPSHOT") { + api("dev.aurelium:slate:1.1.0") { exclude("org.yaml", "snakeyaml") exclude("org.spongepowered", "configurate-yaml") } diff --git a/common/src/main/resources/messages/messages_fr.yml b/common/src/main/resources/messages/messages_fr.yml index bbb494a59..45054d889 100644 --- a/common/src/main/resources/messages/messages_fr.yml +++ b/common/src/main/resources/messages/messages_fr.yml @@ -587,7 +587,7 @@ menus: abilities_click: "Cliquez pour voir les capacités de {skill}" stats: stats_title: Vos statistiques - skills: "7Compétences" + skills: "Compétences" added_drop: "+{value} Drop" added_drops: "+{value} Drops" chance_drop: "{chance}% pour +{value} Drop" diff --git a/gradle.properties b/gradle.properties index 3eba44525..b2b38c79d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -projectVersion = 2.0.8 \ No newline at end of file +projectVersion = 2.0.9 \ No newline at end of file