mojira.dev
MCPE-219395

@minecraft/server 2.0.0-beta. On realms. Operators aren’t classified as operators by custom commands( using CommandPermissionLevel.Admin. Or .isOp())

To reproduce this. Simply create a custom command and set the permission for it to CommandPermissionLevel.Admin of any other permission that allowed operators to use the command. and try use it on a realm.

Another way to reproduce this is to create a simple snippet using player.isOp() on an operator inside a realm and see if it returns true.

Here is my example

    const admins = [...world.getPlayers()].filter(p => p.isOp());
    if (admins.length === 0) {
        sender.error("No admins are currently online.");
        return;
    }

    const names = admins.map(p => `§d${p.name}`).join("§5, §d");
    sender.sendMessage(`§5Online Admins (§u${admins.length}§5): §d${names}`);

sender can be replaced by the player receiving the message. This is a simple script which I used to list all admin in the world at the current time. This works beautifully in a normal world yet in a realm it only seems to work on certain people

Linked issues

Comments 0

No comments.

Mikolaj

(Unassigned)

Unconfirmed

PlayStation

1.21.80

Retrieved