Skip to content

Commit 21e3e2c

Browse files
committed
Renamed setTicks to setLength
1 parent 1dc16c2 commit 21e3e2c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/main/java/com/vltno/timeloop/Commands.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ public void register(CommandDispatcher<ServerCommandSource> dispatcher, CommandR
8080
return 1;
8181
})))
8282

83-
.then(CommandManager.literal("setTicks")
83+
.then(CommandManager.literal("setLength")
8484
.requires(source -> source.hasPermissionLevel(2))
8585
.executes(context -> {
86-
context.getSource().sendMessage(Text.literal("Loop ticks is set to: " + mod.loopLengthTicks + " ticks"));
86+
context.getSource().sendMessage(Text.literal("Loop length is set to: " + mod.loopLengthTicks + " ticks"));
8787
return 1;
8888
})
8989
.then(CommandManager.argument("ticks", IntegerArgumentType.integer(20))
@@ -99,7 +99,7 @@ public void register(CommandDispatcher<ServerCommandSource> dispatcher, CommandR
9999

100100
mod.executeCommand(String.format("bossbar set minecraft:loop_info max %s", newTicks));
101101
context.getSource().sendMessage(Text.literal("Loop ticks is set to: " + newTicks + " ticks"));
102-
LOGGER.info("Loop ticks set to {} ticks", newTicks);
102+
LOGGER.info("Loop length set to {} ticks", newTicks);
103103
return 1;
104104
})))
105105

@@ -193,7 +193,7 @@ public void register(CommandDispatcher<ServerCommandSource> dispatcher, CommandR
193193
context.getSource().sendMessage(Text.literal("Display Time in ticks is set to: " + newDisplayTimeInTicks));
194194
LOGGER.info("Display Time in ticks set to {}", newDisplayTimeInTicks);
195195
return 1;
196-
}))))
196+
})))
197197

198198
.then(CommandManager.literal("showLoopInfo")
199199
.requires(source -> source.hasPermissionLevel(2))
@@ -243,6 +243,6 @@ public void register(CommandDispatcher<ServerCommandSource> dispatcher, CommandR
243243
mod.config.save();
244244
context.getSource().sendMessage(Text.literal("Loop reset!"));
245245
return 1;
246-
})));
246+
}))));
247247
}
248248
}

0 commit comments

Comments
 (0)