Skip to content

Commit f4b97e0

Browse files
committed
Add separate message for /ctime reset. Closes #566
1 parent 4d97cb5 commit f4b97e0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/java/net/earthcomputer/clientcommands/command/CTimeCommand.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package net.earthcomputer.clientcommands.command;
22

3+
import com.mojang.brigadier.Command;
34
import com.mojang.brigadier.CommandDispatcher;
45
import net.earthcomputer.clientcommands.features.ClientTimeModifier;
56
import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource;
@@ -61,6 +62,7 @@ private static int executeSetTime(FabricClientCommandSource source, int time) {
6162

6263
private static int executeResetTime(FabricClientCommandSource source) {
6364
ClientTimeModifier.none();
64-
return executeQueryDayTime(source);
65+
source.sendFeedback(Text.translatable("commands.ctime.reset.success"));
66+
return Command.SINGLE_SUCCESS;
6567
}
6668
}

src/main/resources/assets/clientcommands/lang/en_us.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@
179179
"commands.ctask.stop.noMatch": "No matching tasks",
180180
"commands.ctask.stop.success": "Stopped %d tasks",
181181

182+
"commands.ctime.reset.success": "The time now matches the server",
183+
182184
"commands.ctitle.cleared": "Cleared titles",
183185
"commands.ctitle.reset": "Reset title options",
184186
"commands.ctitle.show.title": "Showing new title",

0 commit comments

Comments
 (0)