#help, idk why this is not working

1 messages · Page 1 of 1 (latest)

mortal heart
#
function staff_unmute(player) {
    const players = world.getAllPlayers().map((plr) => plr.name);
    let form = new ModalFormData();

    form.title("§cSTAFF MENU");
    form.dropdown("Select a player to UnMute.", players);
    form.show(player).then((response) => {
        const playerName = players[response.formValues[0]];

        if (playerName == player.name) {
            player.runCommand(`tag "${playerName}" remove Muted`);
            world.sendMessage(`§cOpera Staff §8§l> §r§f${playerName} §cHas been UnMuted!`);
        }
    });
}
``` when i click someone and press the button nothing runs
rain yewBOT
#
No Errors

No errors in [code](#1109939227690541117 message)

azure lava
#

Probably not the function that is broken, but the part of the code that invokes it.

mortal heart