<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sat Jan 11 08:22:54 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[BDS-18725] [Scripting] isOp() returns false when players are operator</title>
                <link>https://bugs.mojang.com/browse/BDS-18725</link>
                <project id="11700" key="BDS">Bedrock Dedicated Server</project>
                    <description>&lt;p&gt;&lt;del&gt;&lt;ins&gt;&lt;b&gt;Version is 1.20.30 - Not available to select&lt;/b&gt;&lt;/ins&gt;&lt;/del&gt;&#160; &#160;&lt;ins&gt;*&lt;b&gt;&lt;/ins&gt;&#160; &#160;*It is now available so have updated this.&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;isOp() from the Player class is always returning false, even if the player is operator, except if setOp(true) is called first.&lt;/p&gt;

&lt;p&gt;This defeats the purpose of having an isOp() method if you have to manually check player IDs just to see if they should have setOp() called.&#160;&lt;/p&gt;</description>
                <environment>Ubuntu Server</environment>
        <key id="542722">BDS-18725</key>
            <summary>[Scripting] isOp() returns false when players are operator</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="4" iconUrl="https://bugs.mojang.com/images/icons/statuses/reopened.png" description="This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.">Reopened</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="old-mate-jim">old-mate-jim</reporter>
                        <labels>
                    </labels>
                <created>Wed, 20 Sep 2023 04:53:20 +0200</created>
                <updated>Sun, 8 Sep 2024 14:06:56 +0200</updated>
                                            <version>1.20.30</version>
                                                            <votes>8</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="1354140" author="JIRAUSER763273" created="Sun, 8 Sep 2024 02:53:25 +0200"  >&lt;p&gt;According to this &lt;a href=&quot;https://minecraft.wiki/w/Server.properties&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://minecraft.wiki/w/Server.properties&lt;/a&gt; the op-permission-level property is for Java Edition. This issue is for the Bedrock Server.&lt;/p&gt;</comment>
                            <comment id="1341346" author="JIRAUSER573203" created="Thu, 25 Jul 2024 16:55:08 +0200"  >&lt;p&gt;you have to set op-permission-level  in server.properties&lt;/p&gt;</comment>
                            <comment id="1314568" author="JIRAUSER776101" created="Sat, 6 Apr 2024 13:32:28 +0200"  >&lt;p&gt;I&apos;m seeing exactly the same issue as described. My mod is designed such that it adds additional restrictions to players which aren&apos;t operators. This works as expected in a single player game (as I change my account type back and forth between Operator and Member) but in the bedrock server game it always returns false, for all players.&lt;/p&gt;</comment>
                            <comment id="1310368" author="mariustanghal03" created="Mon, 18 Mar 2024 09:43:36 +0100"  >&lt;p&gt;isOp() working fine in local world for me. But in realms, it&apos;s not.&lt;/p&gt;</comment>
                            <comment id="1282942" author="JIRAUSER763273" created="Tue, 3 Oct 2023 09:47:01 +0200"  >&lt;p&gt;Any progress on this?&lt;/p&gt;</comment>
                            <comment id="1282408" author="JIRAUSER763273" created="Sat, 30 Sep 2023 06:02:49 +0200"  >&lt;p&gt;I have confirmed that the issue is present on Windows also.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Steps to Reproduce:&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;&#160;Download the &lt;span class=&quot;error&quot;&gt;&amp;#91;Minecraft Bedrock Server Download | Minecraft|https://www.minecraft.net/en-us/download/server/bedrock&amp;#93;&lt;/span&gt; for either Windows or Linux.&lt;/li&gt;
	&lt;li&gt;&#160;Run the server and wait until console is idle and world is running then stop it (this makes sure the world is created)&lt;/li&gt;
	&lt;li&gt;&#160;Stop the server&lt;/li&gt;
	&lt;li&gt;&#160;Extract the contents of attached Example_Behavior_Pack.zip to the directory:&#160; ./behavior_packs/Example_Behavior_Pack&lt;/li&gt;
	&lt;li&gt;&#160;Place the world_behavior_packs.json and level.dat files in the ./worlds/Bedrock level/ directory&lt;/li&gt;
	&lt;li&gt;&#160;Open Minecraft for Windows&lt;/li&gt;
	&lt;li&gt;&#160;Join the Server&lt;/li&gt;
	&lt;li&gt;&#160;You will see in the console &quot;Player is not op&quot;&lt;/li&gt;
	&lt;li&gt;&#160;Run the command in the console to give yourself operator permission &quot;op &amp;lt;player_name_here&amp;gt;&quot;&lt;/li&gt;
	&lt;li&gt;&#160;Note the command output says &quot;Opped &amp;lt;player_name_here&amp;gt;&quot;&lt;/li&gt;
	&lt;li&gt;&#160;Leave the server.&lt;/li&gt;
	&lt;li&gt;&#160;Rejoin the server&lt;/li&gt;
	&lt;li&gt;&#160;You will see in the console &quot;Player is not op&quot;&lt;/li&gt;
	&lt;li&gt;&#160;Open the menu&#160;&lt;/li&gt;
	&lt;li&gt;&#160;You will see you do have operator permission but the server is not recognizing it.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Here is the code that checks the operator status using the &lt;a href=&quot;https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Minecraft Script API &lt;/a&gt;specifically, this part: &lt;a href=&quot;https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/player#isop&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;minecraft/server.Player Class&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; * as server from &lt;span class=&quot;code-quote&quot;&gt;&quot;@minecraft/server&quot;&lt;/span&gt;
server.world.afterEvents.playerSpawn.subscribe(onAfterPlayerSpawn)
/**&#160;
 * &#160;
 * @param {server.PlayerSpawnAfterEvent} eventData
 */
function onAfterPlayerSpawn(eventData) {&#160; &#160; 
    console.log(`Player ${eventData.player.isOp() ? &lt;span class=&quot;code-quote&quot;&gt;&quot;is&quot;&lt;/span&gt; : &lt;span class=&quot;code-quote&quot;&gt;&quot;is not&quot;&lt;/span&gt;} op`)
}&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Observed Results:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;The player is not being recognized as having operator status even though they do.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Expected Results:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;When the player with operator status spawns, the message should say &quot;Player is op&quot;.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Additonal Info:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&lt;font color=&quot;#ff0000&quot;&gt;Link to Video: &lt;a href=&quot;https://clipchamp.com/watch/ldGG6Gagf3u&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MinecraftScriptingBug&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&lt;font color=&quot;#ff0000&quot;&gt;Video Also Attached&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="1282400" author="JIRAUSER763273" created="Sat, 30 Sep 2023 02:36:37 +0200"  >&lt;p&gt;Firstly, I am aware of how JIRA works. I am a .NET Software Engineer and use the same platform. That&apos;s very poor workflow management if you&apos;re marking them as resolved instead of one more suitable.&#160;&lt;/p&gt;

&lt;p&gt;FYI this is a regression. It was working fine in 1.20.15 but not in 1.20.30.&lt;/p&gt;

&lt;p&gt;Can you tell me what you have tried so far so I can make corrections that will allow you to reproduce the issue?&lt;/p&gt;</comment>
                            <comment id="1282317" author="JIRAUSER648376" created="Fri, 29 Sep 2023 15:25:14 +0200"  >&lt;p&gt;Hi&lt;/p&gt;

&lt;p&gt;It is resolved as awaiting response. It automatically reopens when you reply. It is still tracked and open, but we need more detailed information how to reproduce this issue. &lt;/p&gt;</comment>
                            <comment id="1282309" author="JIRAUSER763273" created="Fri, 29 Sep 2023 14:34:48 +0200"  >&lt;p&gt;Ok. Can you stop marking it as resolved then? It&apos;s not resolved.&lt;/p&gt;</comment>
                            <comment id="1282301" author="JIRAUSER648376" created="Fri, 29 Sep 2023 12:27:11 +0200"  >&lt;p&gt;Hi&lt;/p&gt;

&lt;p&gt;I need more detailed instructions how to reproduce this issue. If possible with video as well. &lt;/p&gt;

&lt;p&gt;This issue will automatically reopen when you reply. &lt;/p&gt;</comment>
                            <comment id="1282298" author="JIRAUSER763273" created="Fri, 29 Sep 2023 11:57:25 +0200"  >&lt;p&gt;I haven&apos;t tested on any other platforms so I don&apos;t know. Doesn&apos;t seem like something that would be platform specific.&lt;/p&gt;</comment>
                            <comment id="1282291" author="JIRAUSER648376" created="Fri, 29 Sep 2023 10:37:52 +0200"  >&lt;p&gt;Hi&lt;/p&gt;

&lt;p&gt;Does it only occur on Linux?&lt;/p&gt;

&lt;p&gt;This ticket will automatically reopen when you reply. &lt;/p&gt;</comment>
                            <comment id="1282176" author="JIRAUSER763273" created="Thu, 28 Sep 2023 15:58:09 +0200"  >&lt;p&gt;Any progress?&lt;/p&gt;</comment>
                            <comment id="1282009" author="JIRAUSER763273" created="Wed, 27 Sep 2023 22:26:52 +0200"  >&lt;p&gt;Really? Marking it resolved without even looking into it. I&apos;m not sure how much clearer I could have been.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Steps to Reproduce:&lt;/p&gt;

&lt;p&gt;1. Make a Bedrock Dedicated Server&lt;/p&gt;

&lt;p&gt;2. Use the &lt;a href=&quot;https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Minecraft Script API&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3. Call the function Player.isOp() in the context of a Player who is operator e.g. using the PlayerBreakBlockAfterEvent&lt;/p&gt;

&lt;p&gt;4. Observe the result with console.log()&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Observed Results:&lt;/p&gt;

&lt;p&gt;The function always returns a value of false even when the player is operator&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Expected Results:&lt;/p&gt;

&lt;p&gt;The function returns true when the player is operator&#160;&lt;/p&gt;</comment>
                            <comment id="1281964" author="JIRAUSER648376" created="Wed, 27 Sep 2023 17:13:18 +0200"  >&lt;p&gt;&lt;b&gt;Thank you for your report!&lt;/b&gt;&lt;br/&gt;
However, this issue has been temporarily closed as&#160;&lt;b&gt;&lt;font color=&quot;#ff5722&quot;&gt;Awaiting Response&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Can you please describe your issue in more detail?&lt;/p&gt;

&lt;p&gt;To make your bug report as effective as possible, please try and include the following steps to reproduce the problem:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;b&gt;Steps to Reproduce:&lt;/b&gt;&lt;br/&gt;
1.&lt;br/&gt;
2.&lt;br/&gt;
3.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Observed Results:&lt;/b&gt;&lt;br/&gt;
&lt;em&gt;(Briefly describe what happens)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Expected Results:&lt;/b&gt;&lt;br/&gt;
&lt;em&gt;(Briefly describe what should happen)&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;If your ticket does not look like the example given&#160;&lt;a href=&quot;https://aka.ms/MCBugTrackerHelp&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;, then it&apos;s likely to be closed as incomplete.&lt;/p&gt;

&lt;p&gt;&#160;&lt;b&gt;Quick Links&lt;/b&gt;:&lt;br/&gt;
&#128211; &lt;a href=&quot;https://aka.ms/MCBugTrackerHelp&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Bug Tracker Guidelines&lt;/a&gt; &amp;#8211; &#128231; &lt;a href=&quot;https://aka.ms/Minecraft-Support&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Mojang Support&lt;/a&gt;&lt;br/&gt;
&#128211; &lt;a href=&quot;https://bugs.mojang.com/projects/BDS/summary&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;Project Summary&lt;/a&gt; &amp;#8211; &#9997;&#65039; &lt;a href=&quot;https://feedback.minecraft.net/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Feedback and Suggestions&lt;/a&gt; &amp;#8211; &#128214; &lt;a href=&quot;https://minecraft.fandom.com/wiki/Bedrock_Dedicated_Server&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;BDS Wiki&lt;/a&gt; &amp;#8211; &#128214; &lt;a href=&quot;https://help.minecraft.net/hc/en-us/articles/360035131651-Dedicated-Servers-for-Minecraft-on-Bedrock-&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;FAQs&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="540404">MCPE-173980</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="551121" name="Example_Behavior_Pack.zip" size="773" author="old-mate-jim" created="Sat, 30 Sep 2023 05:28:14 +0200"/>
                            <attachment id="551124" name="MinecraftScriptingBug_conv.mp4" size="8274249" author="old-mate-jim" created="Sat, 30 Sep 2023 06:02:34 +0200"/>
                            <attachment id="551122" name="level.dat" size="2753" author="old-mate-jim" created="Sat, 30 Sep 2023 05:31:32 +0200"/>
                            <attachment id="551123" name="world_behavior_packs.json" size="72" author="old-mate-jim" created="Sat, 30 Sep 2023 05:31:32 +0200"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_11500" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>ADO</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1116005, 1074369</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10303"><![CDATA[Confirmed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12700" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Description</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>[Briefly describe the bug here]&lt;br/&gt;
&lt;br/&gt;
*Steps to Reproduce:*&lt;br/&gt;
# [Step 1]&lt;br/&gt;
# [Step 2]&lt;br/&gt;
# [Step 3]&lt;br/&gt;
&lt;br/&gt;
*Observed Results:*&lt;br/&gt;
[Describe what happens]&lt;br/&gt;
&lt;br/&gt;
*Expected Results:*&lt;br/&gt;
[Describe what should happen]&lt;br/&gt;
&lt;br/&gt;
*Screenshots/Videos attached:* [please attach an image or short video]&lt;br/&gt;
&lt;br/&gt;
*Notes:*</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i2ezpr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>