WIP: Adding the chat based advancement trigger and trigger criteria to config #1
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "mauberries/main"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
WIP - modified AsyncPlayerChatListener to award an achievement to the chat message author if the message contains the phrases/words specified in the config.
@ -51,0 +57,4 @@
List<String> advancementTriggerList = plugin.getConfig().getStringList("chat-advancement-triggers");
if (advancementTriggerList.stream().anyMatch(t -> chat.toLowerCase().contains(t.toLowerCase()))) {
player.getAdvancementProgress(adv).awardCriteria("win");
}
No need for
else {}
Same with the line below.
Removed
else{}
s per the above. Still working on errors when trying to build the jar.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.