<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:27:06 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-11270] Scoreboard don&apos;t work with offline / non-existant players</title>
                <link>https://bugs.mojang.com/browse/MC-11270</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;&lt;b&gt;&lt;ins&gt;Steps&lt;/ins&gt;&lt;/b&gt;:&lt;blockquote&gt;
&lt;ol&gt;
	&lt;li&gt;Start a server and join it as op in creative&lt;/li&gt;
	&lt;li&gt;Type these commands: &lt;em&gt;(So your scoreboard is prepared)&lt;/em&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;/scoreboard objectives add Test dummy
/scoreboard objectives setdisplay sidebar Test 0&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
	&lt;li&gt;Type these commands: &lt;em&gt;(You are the only tracked player)&lt;/em&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;/scoreboard players set &amp;lt;yourPlayerName&amp;gt; Test 0
/scoreboard players set &amp;lt;friendPlayerName&amp;gt; Test 0
/scoreboard players set &amp;lt;non-existantPlayerName&amp;gt; Test 0&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
	&lt;li&gt;Type these commands: &lt;em&gt;(This only change your score)&lt;/em&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;/scoreboard players set @a Test 1&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
	&lt;li&gt;Let a friend join the server&lt;/li&gt;
	&lt;li&gt;Type these commands: &lt;em&gt;(Your friend is tracked)&lt;/em&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;/scoreboard players set &amp;lt;friendPlayerName&amp;gt; Test 1&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
	&lt;li&gt;Type these commands: &lt;em&gt;(Your friend score and yours is set to 2)&lt;/em&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;/scoreboard players set @a Test 2&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
	&lt;li&gt;Tell your friend to leave the server&lt;/li&gt;
	&lt;li&gt;Type these commands: &lt;em&gt;(You can&apos;t change his score when he&apos;s offline, whenever he&apos;s tracked)&lt;/em&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;/scoreboard players set &amp;lt;friendPlayerName&amp;gt; Test 1&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
	&lt;li&gt;Type these commands: &lt;em&gt;(You can only change the score of online players, whenever other are tracked)&lt;/em&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;/scoreboard players set @a Test 0&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;&lt;br/&gt;
&lt;b&gt;&lt;ins&gt;Description&lt;/ins&gt;&lt;/b&gt;:&lt;blockquote&gt;
&lt;p&gt;It&apos;s only possible to change score for online tracked players.&lt;/p&gt;&lt;/blockquote&gt;&lt;br/&gt;
&lt;b&gt;&lt;ins&gt;Expected&lt;/ins&gt;&lt;/b&gt;:&lt;blockquote&gt;
&lt;ul&gt;
	&lt;li&gt;Having the possibility to change the score an already tracked players.&lt;/li&gt;
	&lt;li&gt;Having @a selectors to change the score of all tracked players of the specified objective, additionaly to connected players&lt;/li&gt;
	&lt;li&gt;Having the possibility to add an offline player to the list of tracked player for one objective, if their names is given explicitly.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;br/&gt;
&lt;b&gt;&lt;ins&gt;Actual&lt;/ins&gt;&lt;/b&gt;:&lt;blockquote&gt;
&lt;ul&gt;
	&lt;li&gt;Since a player is tracked for a scoreboard and he&apos;s not on the server,&lt;/li&gt;
	&lt;li&gt;It&apos;s not possible to change his score, when we use his name explicitly or with selectors such as @a.&lt;/li&gt;
	&lt;li&gt;It&apos;s not possible to set a name for a player that&apos;s not on the server or non-existant player.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="25386">MC-11270</key>
            <summary>Scoreboard don&apos;t work with offline / non-existant players</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="-1">Unassigned</assignee>
                                    <reporter username="ypetremann">Yoann Petremann</reporter>
                        <labels>
                            <label>offline</label>
                            <label>players</label>
                            <label>scoreboard</label>
                    </labels>
                <created>Thu, 7 Mar 2013 23:00:41 +0100</created>
                <updated>Sun, 9 Mar 2014 23:05:45 +0100</updated>
                            <resolved>Mon, 24 Feb 2014 22:46:13 +0100</resolved>
                                    <version>Minecraft 1.5</version>
                    <version>Minecraft 1.6.1</version>
                    <version>Minecraft 1.6.2</version>
                    <version>Minecraft 1.7.2</version>
                    <version>Minecraft 1.7.3</version>
                    <version>Minecraft 1.7.4</version>
                                    <fixVersion>Minecraft 14w07a</fixVersion>
                                                        <votes>14</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="140218" author="pokechu22" created="Fri, 14 Feb 2014 17:15:46 +0100"  >&lt;p&gt;Can confirm with sethbling: &lt;a href=&quot;http://www.youtube.com/watch?v=XnU792590CQ#t=342&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.youtube.com/watch?v=XnU792590CQ#t=342&lt;/a&gt; (5:40 in).&lt;/p&gt;</comment>
                            <comment id="140211" author="skylinerw" created="Fri, 14 Feb 2014 17:06:37 +0100"  >&lt;p&gt;And this has now been fixed in 14w07a. A new argument to the /scoreboard syntax called &quot;test&quot; has been added:&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;/scoreboard players test &amp;lt;player&amp;gt; &amp;lt;objective&amp;gt; &amp;lt;min&amp;gt; &amp;lt;max&amp;gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;You can prefix fake players with a # symbol so they don&apos;t show up on any scoreboard displays, but is not required for testing. An example command:&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;/scoreboard players test FAKEPLAYER testObjective 0 1&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="139999" author="kenblu24" created="Thu, 13 Feb 2014 22:45:49 +0100"  >&lt;p&gt;Ah. I see what you mean. You &lt;b&gt;can&lt;/b&gt;, however, change offline players directly, without the use of a selector. /scoreboard players set Notch FOO 1 works. Sadly this isn&apos;t very useful without testfor, I&apos;d love to be able to specify the player in testfor. Testing for &quot;Foo&quot; will always return yes if there are no online players with that objective.&lt;/p&gt;

&lt;p&gt;Really want this to be fixed, so hard-wired variables can be used in adventure maps.&lt;/p&gt;</comment>
                            <comment id="139994" author="pokechu22" created="Thu, 13 Feb 2014 22:19:07 +0100"  >&lt;p&gt;But not by @selector.  Nor with /testfor.  You can&apos;t do /testfor @a&lt;span class=&quot;error&quot;&gt;&amp;#91;score_isVar_min=1,score_FOO_min=20&amp;#93;&lt;/span&gt;.&lt;/p&gt;</comment>
                            <comment id="139990" author="kenblu24" created="Thu, 13 Feb 2014 22:10:27 +0100"  >&lt;p&gt;THIS HAS BEEN FIXED. In 1.7.4, you can change the score of an offline or non-existent player. Can I get someone to confirm and close this?&lt;/p&gt;</comment>
                            <comment id="139983" author="kenblu24" created="Thu, 13 Feb 2014 21:26:32 +0100"  >&lt;p&gt;Would love to see this fixed in the newest snapshot.&lt;/p&gt;</comment>
                            <comment id="138933" author="boxfigs" created="Fri, 7 Feb 2014 22:40:35 +0100"  >&lt;p&gt;This should be fixed in 14w06a with the addition of using * to select all players tracked by the scoreboard.&lt;/p&gt;</comment>
                            <comment id="126058" author="skylinerw" created="Sat, 21 Dec 2013 11:07:19 +0100"  >&lt;p&gt;Present in 1.7.4&lt;/p&gt;</comment>
                            <comment id="121726" author="versepelles" created="Wed, 27 Nov 2013 16:02:03 +0100"  >&lt;p&gt;Confirmed for snpshot 13w48b.&lt;/p&gt;</comment>
                            <comment id="120252" author="skylinerw" created="Thu, 21 Nov 2013 19:17:04 +0100"  >&lt;p&gt;Confirmed for snapshots 13w47a/b/c.&lt;/p&gt;</comment>
                            <comment id="119235" author="escorefairplay" created="Wed, 13 Nov 2013 17:19:54 +0100"  >&lt;p&gt;I agree to this thread. Would be neat to use with stat.leaveGame!&lt;/p&gt;</comment>
                            <comment id="118965" author="ypetremann" created="Tue, 12 Nov 2013 14:48:57 +0100"  >&lt;p&gt;I agree with you anomitee, having the possibility to have a @t (I&apos;ve proposed o or f as offline) would let something better.&lt;/p&gt;</comment>
                            <comment id="118954" author="anomitee" created="Tue, 12 Nov 2013 10:18:26 +0100"  >&lt;p&gt;I&apos;m getting this bug in 1.7.2, but some things do work:&lt;/p&gt;

&lt;p&gt;You can add, set and remove from a score of an offline, nonexistent, untracked (not on the scoreboard) players as long as you explicitly mention their name like such:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;/scoreboard players (add|set|remove) &amp;lt;anyone&amp;gt; &amp;lt;objective&amp;gt; #
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Unfortunately, selectors (selecting players using @) don&apos;t work, all of the following do not work for offline players:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;/scoreboard players add @a points 1
/scoreboard players add @a[name=offlineplayer] points 1
/testfor @a[score_points_min=100]
/testfor @a[name=nonexistantplayer]
/testfor @a[team=theotherside,name=nonexistantplayer]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and any other format that makes use of @.&lt;/p&gt;

&lt;p&gt;To recap:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;all @ selectors cannot/do not target offline players, even if they are tracked&lt;/li&gt;
	&lt;li&gt;/testfor offlineplayer also doesn&apos;t detect offline players, but this is intended&lt;/li&gt;
	&lt;li&gt;@a should be able to target offline players if they are tracked&lt;/li&gt;
	&lt;li&gt;alternatively, @t could be added instead to target all tracked players (both online and offline), leaving @a to target online players.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="100283" author="ypetremann" created="Tue, 27 Aug 2013 16:00:50 +0200"  >&lt;p&gt;I think that a @&lt;em&gt;offline&lt;/em&gt; &lt;em&gt;(maybe &lt;b&gt;o&lt;/b&gt; or &lt;b&gt;f&lt;/b&gt;)&lt;/em&gt; with the name argument could let us track all player tacked by scoreboard or their respective dat files&lt;/p&gt;</comment>
                            <comment id="95055" author="pokechu22" created="Mon, 29 Jul 2013 00:33:11 +0200"  >&lt;p&gt;This could/should be fixed by making a additional command (probably in /scoreboard) that compares the score of a player.&lt;br/&gt;
It would work like this:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;/scoreboard players score &amp;lt;Playername or target selector&amp;gt; &amp;lt;Score&amp;gt; [minimum] [maximum]&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Does this make sense?&lt;/p&gt;

&lt;p&gt;Edited due to the text becoming linked improperly.&lt;/p&gt;</comment>
                            <comment id="83790" author="dark defiance" created="Sat, 6 Jul 2013 01:10:45 +0200"  >&lt;p&gt;Still present in 1.6.2 Pre-Release.&lt;/p&gt;</comment>
                            <comment id="82484" author="dark defiance" created="Thu, 4 Jul 2013 18:27:09 +0200"  >&lt;p&gt;While I have not tested using the OPs method, I can say this still exists in 1.6.1 Release. I&apos;m using &quot;non-existant&quot; players to track map specific options. This was tested in single player as I am developing a map that will be intended for ssp and smp. &lt;/p&gt;

&lt;p&gt;Create a configuration scoreboard:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;/scoreboard objectives add CONFIG dummy CONFIG
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Add it to the sidebar&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;/scoreboard objectives setdisplay sidebar CONFIG
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Add yourself and a non-existant player&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;/scoreboard players add &quot;your_real_player_name&quot; CONFIG 0
/scoreboard players add &quot;non-existant_player_name&quot; CONFIG 0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Create some redstone contraption to check with. I used a redstone clock-&amp;gt;command block-&amp;gt;comparator-&amp;gt;redstone dust-&amp;gt;piston&lt;/p&gt;

&lt;p&gt;Edit the command block to use this command:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;/testfor @a[name=&quot;your_real_player_name_here&quot;,score_CONFIG_min=0]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The Piston will extend.&lt;/p&gt;

&lt;p&gt;Edit the command block to use this command:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;/testfor @a[name=&quot;your_non-existant_player_name_here&quot;,score_CONFIG_min=0]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The Piston will retract as the non-existant player is not online.&lt;/p&gt;

&lt;p&gt;A work around could be to use enitre scoreboards for EACH option and attach scores to all players, but that I would think, would add unnecessary bloat to the scoreboard.dat file.&lt;br/&gt;
I hope this is not intended behavior. This scoreboard system will have much more potential as custom variable system. &lt;/p&gt;
</comment>
                            <comment id="78862" author="passionthinker" created="Sun, 30 Jun 2013 01:47:52 +0200"  >&lt;p&gt;I am glad to see this issue is being tracked; without the ability to set objectives when players are offline, there is no other method (to my knowledge) to test for when players leave mid-game in pvp maps.&lt;/p&gt;</comment>
                            <comment id="57044" author="ypetremann" created="Mon, 25 Mar 2013 01:34:28 +0100"  >&lt;p&gt;So I think it&apos;s needed to add a special selector that read into the &quot;scoreboard player list&quot; instead of &quot;online player list&quot; ... It&apos;s possible now to set a score for non-existant or offline player ... Why not the possibility to test if a tracked player is in a scoreboard.&lt;/p&gt;</comment>
                            <comment id="57038" author="kabob" created="Mon, 25 Mar 2013 01:15:06 +0100"  >&lt;p&gt;There needs to be a command like /scoreboard players setall Test 0.  @a isn&apos;t going to work on offline players.&lt;/p&gt;</comment>
                            <comment id="52095" author="dude" created="Tue, 12 Mar 2013 19:08:28 +0100"  >&lt;p&gt;Confirmed in 1.5pre Uff! This was difficult to reproduce. &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/biggrin.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="30200">MC-14769</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="48205">MC-28179</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="56100">MC-34413</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="76565">MC-50692</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_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|i0ifxb:</customfieldvalue>

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