diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 20475fd..f6497b3 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -25,7 +25,7 @@ jobs: - name: Build with Gradle run: ./gradlew clean build - name: Upload artifact - uses: actions/upload-artifact@v2.3.1 + uses: actions/upload-artifact@v4.4.3 with: name: CommandPrompter path: build/libs diff --git a/README.md b/README.md index 1f5fbf9..e2eb719 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - + # CommandPrompter [](https://ci.cyr1en.com/job/CommandPrompter) [](https://cyr1en.gitbook.io/commandprompter/) @@ -45,7 +45,7 @@ cd CommandPrompter/
This project owes a huge thanks to GitBook's fantastic Open Source License and their amazing platform for creating beautiful and accessible documentation. Their dedication to open source and ease-of-use has been invaluable to this project's success!
-Lithium Hosting's invaluable support by providing a server to facilitate development. Their dedication to open source and the developer community has been instrumental in making this project possible.
diff --git a/build.gradle b/build.gradle index d2e77bf..fc41d04 100644 --- a/build.gradle +++ b/build.gradle @@ -74,11 +74,11 @@ dependencies { implementation "dev.jorel:commandapi-bukkit-shade:9.6.1" implementation 'de.rapha149.signgui:signgui:2.4.2' - compileOnly 'me.clip:placeholderapi:2.11.2' + compileOnly 'me.clip:placeholderapi:2.11.6' compileOnly "net.kyori:adventure-text-serializer-legacy:4.17.0" compileOnly "net.kyori:adventure-text-serializer-plain:4.17.0" compileOnly 'com.palmergames.bukkit.towny:towny:0.100.3.0' - compileOnly "org.spigotmc:spigot-api:1.21-R0.1-SNAPSHOT" + compileOnly "org.spigotmc:spigot-api:1.21.3-R0.1-SNAPSHOT" compileOnly 'com.github.LeonMangler:SuperVanish:6.2.18-3' compileOnly 'de.hexaoxi:carbonchat-api:3.0.0-beta.26' compileOnly 'com.github.mbax:VanishNoPacket:3.22' diff --git a/src/main/java/com/cyr1en/commandprompter/config/PromptConfig.java b/src/main/java/com/cyr1en/commandprompter/config/PromptConfig.java index 9fc66ac..6daf198 100644 --- a/src/main/java/com/cyr1en/commandprompter/config/PromptConfig.java +++ b/src/main/java/com/cyr1en/commandprompter/config/PromptConfig.java @@ -152,10 +152,14 @@ public record PromptConfig( "Enable-Title - Show the first line of the prompt", "(if with {br}) as title of Anvil GUI", "", - "Item - The item to place on the Anvil GUI", + "Item - The Left item to place on the Anvil GUI", "", "Enchanted - Do you want the item enchanted?", "", + "ResultItem - The Result item to place on the Anvil GUI", + "", + "Hide-Tooltips - Hide tooltips of item (1.21.2 OR ABOVE)", + "", "Custom-Title - If title is enabled, and if custom", "title is not empty, CommandPrompter will use this instead", "", @@ -174,20 +178,47 @@ public record PromptConfig( @NodeDefault("") String promptMessage, + @ConfigNode @NodeName("AnvilGUI.Item.Material") @NodeDefault("Paper") String anvilItem, + @ConfigNode + @NodeName("AnvilGUI.Item.HideTooltips") + @NodeDefault("false") + boolean itemHideTooltips, + @ConfigNode @NodeName("AnvilGUI.Item.Custom-Model-Data") @NodeDefault("0") int itemCustomModelData, @ConfigNode - @NodeName("AnvilGUI.Enchanted") + @NodeName("AnvilGUI.Item.Enchanted") + @NodeDefault("false") + boolean itemAnvilEnchanted, + + + @ConfigNode + @NodeName("AnvilGUI.ResultItem.Material") + @NodeDefault("Paper") + String anvilResultItem, + + @ConfigNode + @NodeName("AnvilGUI.ResultItem.HideTooltips") + @NodeDefault("false") + boolean resultItemHideTooltips, + + @ConfigNode + @NodeName("AnvilGUI.ResultItem.Custom-Model-Data") + @NodeDefault("0") + int resultItemCustomModelData, + + @ConfigNode + @NodeName("AnvilGUI.ResultItem.Enchanted") @NodeDefault("false") - boolean anvilEnchanted, + boolean resultItemAnvilEnchanted, // ============================== Text Prompt ============================== @ConfigNode diff --git a/src/main/java/com/cyr1en/commandprompter/prompt/prompts/AnvilPrompt.java b/src/main/java/com/cyr1en/commandprompter/prompt/prompts/AnvilPrompt.java index a012980..d462865 100644 --- a/src/main/java/com/cyr1en/commandprompter/prompt/prompts/AnvilPrompt.java +++ b/src/main/java/com/cyr1en/commandprompter/prompt/prompts/AnvilPrompt.java @@ -28,6 +28,7 @@ import com.cyr1en.commandprompter.prompt.PromptContext; import com.cyr1en.commandprompter.prompt.PromptParser; import com.cyr1en.commandprompter.util.Util; +import com.cyr1en.commandprompter.util.VersionUtil; import net.wesjd.anvilgui.AnvilGUI; import org.bukkit.ChatColor; import org.bukkit.Material; @@ -54,10 +55,11 @@ public AnvilPrompt(CommandPrompter plugin, PromptContext context, public void sendPrompt() { List