<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:19:38 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>[MC-8998] Team option &quot;friendlyfire&quot; is not saved to disk; resets upon map reload</title>
                <link>https://bugs.mojang.com/browse/MC-8998</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;&lt;b&gt;What I expected to happen was:&lt;/b&gt;&lt;br/&gt;
If a team was set to have &quot;friendlyfire&quot; false, it would stay false even after the server is restarted.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;What actually happened was:&lt;/b&gt;&lt;br/&gt;
The &quot;friendlyfire&quot; option reset to true, and players on the team were again able to attack each other.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Steps to reproduce:&lt;/b&gt;&lt;br/&gt;
1. Create a team to test with - &quot;/scoreboard teams add test&quot;&lt;br/&gt;
2. Set that team&apos;s friendlyfire option to false - &quot;/scoreboard teams option test friendlyfire false&quot;&lt;br/&gt;
3. Observe that players on this team cannot harm each other with attacks. You can add them with &quot;/scoreboard teams join test &amp;lt;player&amp;gt;&quot;&lt;br/&gt;
4. Restart the server.&lt;br/&gt;
5. Observe that, although the players are still on this team, they can now harm each other.&lt;/p&gt;

&lt;p&gt;This is rather problematic, as it may not always be possible to use commandblocks to change the friendlyfire option (e.g. when recovering from a server crash), and in general it is a hassle, and I can imagine many people wouldn&apos;t know about this bug because the option seems to work when first tested.&lt;/p&gt;

&lt;p&gt;This issue is not specific to SMP, although the option has no purpose outside SMP. It is caused by a lack of serialization of the friendlyfire option when the scoreboard.dat NBT data is written.&lt;/p&gt;</description>
                <environment></environment>
        <key id="22401">MC-8998</key>
            <summary>Team option &quot;friendlyfire&quot; is not saved to disk; resets upon map reload</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="dinnerbone">[Mojang] Nathan Adams</assignee>
                                    <reporter username="wolfiemario">WolfieMario</reporter>
                        <labels>
                            <label>NBT</label>
                            <label>friendlyfire</label>
                            <label>lost</label>
                            <label>reload</label>
                            <label>save</label>
                            <label>scoreboard</label>
                            <label>teams</label>
                    </labels>
                <created>Sat, 2 Feb 2013 05:06:37 +0100</created>
                <updated>Mon, 4 Feb 2013 12:45:36 +0100</updated>
                            <resolved>Mon, 4 Feb 2013 12:45:36 +0100</resolved>
                                    <version>Snapshot 13w05a</version>
                    <version>Snapshot 13w05b</version>
                                    <fixVersion>Snapshot 13w06a</fixVersion>
                                                        <votes>3</votes>
                                    <watches>2</watches>
                                                                                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Unconfirmed]]></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_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i010dj:</customfieldvalue>

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