Skip to content

Commit a9a5f8f

Browse files
committed
Add a chat box prompt for users to reapply the kubejs hand command and apply new quotation mark changes
1 parent 671c094 commit a9a5f8f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/dev/latvian/mods/kubejs/command/KubeJSCommands.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,13 +561,15 @@ private static int toggleQuoteStyle(CommandSourceStack source) {
561561
CommonProperties.get().setUseDoubleQuotes(!current);
562562
String newStyle = CommonProperties.get().useDoubleQuotes ? "double" : "single";
563563
source.sendSuccess(() -> Component.literal("Quote style switched to: " + newStyle + " quotes"), true);
564+
source.sendSuccess(() -> Component.literal("Please use /kubejs hand again to apply the new quote style to chat messages.").withStyle(ChatFormatting.YELLOW), false);
564565
return 1;
565566
}
566567

567568
private static int setQuoteStyle(CommandSourceStack source, boolean useDoubleQuotes) {
568569
CommonProperties.get().setUseDoubleQuotes(useDoubleQuotes);
569570
String style = useDoubleQuotes ? "double" : "single";
570571
source.sendSuccess(() -> Component.literal("Quote style set to: " + style + " quotes"), true);
572+
source.sendSuccess(() -> Component.literal("Please use /kubejs hand again to apply the new quote style to chat messages.").withStyle(ChatFormatting.YELLOW), false);
571573
return 1;
572574
}
573575

0 commit comments

Comments
 (0)