Tp command

This commit is contained in:
2026-10-02 13:51:07 -03:00
parent 7b3cdd925e
commit d2dde8c14f
3 changed files with 23 additions and 0 deletions
+6
View File
@@ -217,3 +217,9 @@ Deno.test("/effect gives you an effect, for 30 seconds or as many as you say", a
t.send(1, { type: "chat", text: "/effect bworld:regeneration 5" });
assertEquals(t.player.get_effect("bworld:regeneration")?.duration, 100);
});
Deno.test("/tp x y z teleports you there", async () => {
const t = await setup();
t.send(1, { type: "chat", text: "/tp 10 120.5 -3" });
assertEquals([t.player.x, t.player.y, t.player.z], [10, 120.5, -3]);
});