mojira.dev
MCPE-221720

@minecraft/server.Player.playerPermissionLevel returns undefined

Using module @minecraft/server v. 2.0.0-beta. Player.playerPermissionLevel returns undefined (so does the commandPermissionLevel)

Steps to reproduce:
1. Create an empty BP scripting pack. Use @minecraft/server module v. 2.0.0-beta as the dependence in manifest
2. Create a js script file inside BP/scripts folder. Import world from @minecraft/server module.
3. Use world.beforeEvents.chatSend and run world.sendMessage(`Permission Level of ${sender.name}: ${sender.playerPermissionLevel}`)
4. Send any message in chat in-game
Expected result:
Message “Permission level of your name*: *your permission level*”
Observed Result:
Message “Permission level of *your name*: undefined”

Attachments

Comments 4

Actually the trouble is on Minecraft v. 1.21.80 but as theres nothing said about fixing the issue, you should find it on higher versions too

We do not have enough information to reproduce this issue.

Please include the following information to help us understand your problem:

Steps to Reproduce:
1. (Explain what needs to be done for the issue to happen)
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

Please also attach any behavior packs, screenshots, videos, or worlds needed to help reproduce this issue.

Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

[media][media][media]

As for the files

JoperAntiUTK

(Unassigned)

Unconfirmed

Windows

Windows 10

1.21.81 Hotfix

Retrieved