let players = [];
import { world } from "@minecraft/server";
export function playerJoin(event) {
    const joiningPlayer = getPlayerById(event.playerId);
    if (joiningPlayer) {
        players.push(joiningPlayer);
    }
}
function getPlayerById(pid) {
    return world.getAllPlayers().find((player) => player.id === pid);
}
export function playerLeave(event) {
    players = players.filter((player) => player.id !== event.playerId);
}

//# sourceMappingURL=../../../../../_KiCuMountsBPDebug/kicu/mmad/C/PlayerList.js.map
