Skip to content

Commit

Permalink
updated to latest ItemPredicate stringification API; bumped artifact-…
Browse files Browse the repository at this point in the history
… and plugin-version
  • Loading branch information
BlvckBytes committed Oct 5, 2024
1 parent 2ca7b8e commit fb61901
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.blvckbytes</groupId>
<artifactId>QuickShopSearch</artifactId>
<version>0.0.8</version>
<version>0.0.9</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import me.blvckbytes.item_predicate_parser.parse.NormalizedConstant;
import me.blvckbytes.item_predicate_parser.predicate.ItemPredicate;
import me.blvckbytes.item_predicate_parser.predicate.PredicateState;
import me.blvckbytes.item_predicate_parser.predicate.StringifyState;
import me.blvckbytes.item_predicate_parser.translation.TranslationLanguage;
import me.blvckbytes.quick_shop_search.config.MainSection;
import me.blvckbytes.quick_shop_search.display.ResultDisplayHandler;
Expand Down Expand Up @@ -136,7 +137,7 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command
player.sendMessage(message.stringify(
config.rootSection.getBaseEnvironment()
.withLiveVariable("number_shops", shopRegistry::getNumberOfExistingShops)
.withStaticVariable("predicate", predicate.stringify(true))
.withStaticVariable("predicate", new StringifyState(true).appendPredicate(predicate).toString())
.build()
));
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: QuickShopSearch
main: me.blvckbytes.quick_shop_search.QuickShopSearchPlugin
version: 0.0.8
version: 0.0.9
author: BlvckBytes
api-version: 1.13
depend: [QuickShop-Hikari, ItemPredicateParser]
Expand Down

0 comments on commit fb61901

Please sign in to comment.