WIP: Adding the chat based advancement trigger and trigger criteria to config #1

Draft
mauberries wants to merge 3 commits from mauberries/main into main
mauberries commented 2021-05-20 22:12:31 +00:00 (Migrated from git.canopymc.net)

WIP - modified AsyncPlayerChatListener to award an achievement to the chat message author if the message contains the phrases/words specified in the config.

WIP - modified AsyncPlayerChatListener to award an achievement to the chat message author if the message contains the phrases/words specified in the config.
Etzelia (Migrated from git.canopymc.net) reviewed 2021-05-24 02:07:54 +00:00
@ -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");
}
Etzelia (Migrated from git.canopymc.net) commented 2021-05-24 02:07:54 +00:00

No need for else {}

Same with the line below.

No need for `else {}` Same with the line below.
mauberries commented 2021-05-24 13:19:31 +00:00 (Migrated from git.canopymc.net)

Removed else{}s per the above. Still working on errors when trying to build the jar.

Removed `else{}`s per the above. Still working on errors when trying to build the jar.
This pull request has changes conflicting with the target branch.
  • src/main/resources/config.yml
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b mauberries/main main
git pull origin mauberries/main

Step 2:

Merge the changes and update on Gitea.
git checkout main
git merge --no-ff mauberries/main
git push origin main
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Minecraft/QoL#1
There is no content yet.