From 11a9a5ed1cd518c5e27b941e9c2980d9e4b7bca1 Mon Sep 17 00:00:00 2001 From: Slqmy <90862990+Slqmy@users.noreply.github.com> Date: Thu, 8 Aug 2024 23:23:16 +0100 Subject: [PATCH] Include custom item suggestions --- .../template_paper_plugin/commands/GiveCustomItemCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/slqmy/template_paper_plugin/commands/GiveCustomItemCommand.java b/src/main/java/net/slqmy/template_paper_plugin/commands/GiveCustomItemCommand.java index 849f36b7..25c0dbbd 100644 --- a/src/main/java/net/slqmy/template_paper_plugin/commands/GiveCustomItemCommand.java +++ b/src/main/java/net/slqmy/template_paper_plugin/commands/GiveCustomItemCommand.java @@ -29,7 +29,7 @@ public GiveCustomItemCommand(TemplatePaperPlugin plugin) { public CustomItem apply(CustomArgumentInfo info) throws CustomArgumentException { return CustomItem.valueOf(info.currentInput()); } - }); + }).includeSuggestions(ArgumentSuggestions.strings(customItemNames)); executesPlayer((info) -> { CustomItem item = (CustomItem) info.args().get(customItemArgumentNodeName);