Skip to content

Commit

Permalink
fixed \vanish command
Browse files Browse the repository at this point in the history
  • Loading branch information
vytdev committed Jun 20, 2024
1 parent e7583c5 commit efe150d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/server/commands/vanish.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeCommand } from "./index.js";
import { commandSub } from "../../catalyst/@types/commands";
import { queueCommand, RawText } from "../../catalyst/index.js";
import { setTickTimeout,queueCommand, RawText } from "../../catalyst/index.js";
import { assertIsAdmin } from "../utils.js";

const info: commandSub = {
Expand Down Expand Up @@ -45,7 +45,8 @@ makeCommand(info, (args, ev, plr) => {
if (args.msg)
queueCommand('/tellraw @a ' + rawMsg);
plr.msg('§ayou are now visible');
plr.player.removeEffect('invisibility');
// remove invisibility effect to the player
setTickTimeout(() => plr.player.removeEffect('invisibility'));
}

});
Expand Down

0 comments on commit efe150d

Please sign in to comment.