Skip to content

players.closeParachute

Cuts a player’s open parachute: they lose it and fall on. A parachute that is still waiting to open is not opened, and the player keeps it.

players.closeParachute(player: PlayerTarget): Promise<ActionResult>
Name Type Description
player PlayerTarget The player, or their ID.

A promise of an ActionResult: applied once it is cut, rejected with player-not-found or parachute-not-open, or timeout after five seconds without an answer. Calling it again after a successful close returns parachute-not-open.

gamemodes/my-mode.ts
import { commands, players } from "nativemp";
commands.register("cut", async (player) => {
await players.closeParachute(player);
});