Improve commands

This commit is contained in:
2026-09-27 00:38:55 -03:00
parent 535bd36d91
commit 8c7ca92891
13 changed files with 1095 additions and 109 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ Deno.test("the server keeps the time, tells players, saves it, and /time changes
assertEquals(game.world.time, CYCLE_TICKS + 100);
send(1, { type: "chat", text: "/time set nope" });
messages = take(1);
assert(messages.at(-1).text.startsWith("Usage: /time"));
assertEquals(messages.at(-1).text, `"nope" isn't one of day, noon, sunset, night, midnight`);
const loaded = await test_game("mods", game.save());
assertEquals(loaded.game.world.time, CYCLE_TICKS + 100);