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
#help, idk why this is not working
1 messages · Page 1 of 1 (latest)
No Errors
No errors in [code](#1109939227690541117 message)
Probably not the function that is broken, but the part of the code that invokes it.
i removed the if and it works now