<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 11:49:36 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-40] Calculate name plate length based on username stripped of color codes</title>
                <link>https://bugs.mojang.com/browse/MC-40</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;Note: This may well be fixed in 1.4, but it&apos;s impossible for me to check due to the lack of a Bukkit build.&lt;/p&gt;

&lt;p&gt;Currently, adding colour codes to a user&apos;s name plate causes the length calculation for the blackbox under the text to be inaccurate, leaving a gap at the end as shown in the screenshot that is attached. &lt;/p&gt;

&lt;p&gt;To fix this, the nameplate length needs to be calculated after using a version of the username stripped of all characters. This would allow colouring nameplates without this visual glitch, at least until the API is ready.&lt;/p&gt;</description>
                <environment>All operating systems + java versions are affected.</environment>
        <key id="11279">MC-40</key>
            <summary>Calculate name plate length based on username stripped of color codes</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="grum">[Mojang] Grum (Erik Broes)</assignee>
                                    <reporter username="lol768">lol768</reporter>
                        <labels>
                    </labels>
                <created>Wed, 24 Oct 2012 17:16:37 +0200</created>
                <updated>Sat, 9 Feb 2013 23:06:42 +0100</updated>
                            <resolved>Thu, 25 Oct 2012 06:02:48 +0200</resolved>
                                    <version>Minecraft 1.4.1</version>
                                    <fixVersion>Minecraft 1.4.3</fixVersion>
                                                        <votes>1</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="25812" author="terrorbite" created="Fri, 30 Nov 2012 06:49:15 +0100"  >&lt;p&gt;@Grum&lt;br/&gt;
Was this fixed for more than just player nameplates? I notice that related issues are also fixed.&lt;/p&gt;

&lt;p&gt;For example, if color codes are used in a kick message, the text is now properly center-justified, whereas it would previously be incorrectly offset. Colored text on signs is also now centered correctly.&lt;/p&gt;

&lt;p&gt;Either way, thanks for the fix!&lt;/p&gt;</comment>
                            <comment id="12945" author="grum" created="Thu, 25 Oct 2012 06:02:48 +0200"  >&lt;p&gt;Fixed when I test it here locally.&lt;/p&gt;</comment>
                            <comment id="12458" author="lol768" created="Wed, 24 Oct 2012 22:36:59 +0200"  >&lt;p&gt;Strictly speaking, it can only be encountered with a modded server, but as PvP + CTF etc etc servers are becoming more popular, I feel this bug is kinda important w/ regards to being fixed.&lt;/p&gt;

&lt;p&gt;Vanilla is probably less used than CraftBukkit anyway, due to its superior functionality and API, which are lacking from the vanilla server.&lt;/p&gt;</comment>
                            <comment id="12188" author="nuxas" created="Wed, 24 Oct 2012 18:08:55 +0200"  >&lt;p&gt;Related it would be good if the nameplate length limit was lifted.&lt;/p&gt;

&lt;p&gt;As it is now if we are using color codes we must cut down the name to 16 characters to avoid breakage. For the longest usernames that results in cut down names. This also applies to the playerlist(think it is related).&lt;/p&gt;</comment>
                            <comment id="12128" author="cloudy" created="Wed, 24 Oct 2012 17:21:40 +0200"  >&lt;p&gt;Considering this is a bug that can only be experienced by using third party software, I&apos;m not sure that it really counts as a bug. I agree that it is unfortunate for modders, but until the API comes this won&apos;t be a vanilla problem. I&apos;m not going to close this as I think someone from Mojang should look at this, but just my two cents.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10103">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="16132">MC-3887</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="10636" name="uSXx5.png" size="27107" author="lol768" created="Wed, 24 Oct 2012 17:16:37 +0200"/>
                    </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|i0momv:</customfieldvalue>

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