Skip to content

Commit

Permalink
Add command feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Jan 12, 2022
1 parent 9cce305 commit 3be5621
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ private static int startDialogue(ServerCommandSource source, Identifier dialogue
int count = 0;
for (ServerPlayerEntity player : players) {
PlayerDialogueTracker.get(player).startDialogue(dialogue);
source.sendFeedback(new TranslatableText("blabber:commands.dialogue.start.success", dialogue, player.getDisplayName()), true);
count++;
}

return count;
}
}
1 change: 1 addition & 0 deletions src/main/resources/assets/blabber/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"blabber:commands.dialogue.start.invalid": "There is no dialogue with type \"%s\"",
"blabber:commands.dialogue.start.success": "Initiated dialogue \"%s\" for %s",
"blabber:dialogue.instructions": "Hover or press [%s]/[%s] to select a choice, then click or press [%s] to confirm it"
}
1 change: 1 addition & 0 deletions src/main/resources/assets/blabber/lang/fr_fr.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"blabber:commands.dialogue.start.invalid": "Il n'y a pas de dialogue \"%s\"",
"blabber:commands.dialogue.start.success": "Le dialogue \"%s\" a été initié pour %s",
"blabber:dialogue.instructions": "Survolez ou utilisez [%s]/[%s] pour sélectionner un choix, puis clickez ou utilisez [%s] pour confirmer"
}

0 comments on commit 3be5621

Please sign in to comment.