Tp command
This commit is contained in:
@@ -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]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user