[MC-7569] RCON output has newlines removed Created: 16/Jan/13 Updated: 27/Oct/23 |
|
| Status: | Reopened |
| Project: | Minecraft: Java Edition |
| Component/s: | None |
| Affects Version/s: | Minecraft 1.4.7, Minecraft 1.5, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 1.7.4, Minecraft 14w06b, Minecraft 14w18b, Minecraft 14w28a, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.1, Minecraft 1.8.3, Minecraft 1.10.2, Minecraft 1.11.2, Minecraft 1.12, Minecraft 1.12.2, Minecraft 1.13-pre5, Minecraft 1.13.1, Minecraft 1.13.2, 1.15.2, 1.17, 1.18.2, 1.19.4 |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | dx | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 42 |
| Labels: | rcon | ||
| Environment: |
Debian GNU/Linux Sta(b)le 6.0 |
||
| CHK: | |
| Confirmation Status: | Confirmed |
| Category: |
Networking
|
| Mojang Priority: | Low |
| Area: | Platform |
| Description |
|
When executing rcon commands, the response is all in one string with no newline characters, even when the command yields several lines of text when executed on the console. Bukkit returns the newlines, but vanilla Minecraft does not, making the server response much harder to parse. Code analysis can be found by isXander in this comment. |
| Comments |
| Comment by NopeProsOnly [ 10/May/23 ] |
|
Can confirm for 1.19.4 |
| Comment by Xander Smith [ 05/Apr/22 ] |
|
Can confirm on 1.18.2 Code analysis Based on yarn 1.18.2 mappings In the class RconCommandOutput public void sendSystemMessage(Text message, UUID sender) { this.buffer.append(message.getString()); } The message is appended to the buffer. Without a line seperator. I suggest simply appending System.lineSeperator() to the buffer on each system message public void sendSystemMessage(Text message, UUID sender) { this.buffer.append(message.getString()).append(System.lineSeperator()); } Like this! |
| Comment by Mos Kullathon [ 28/Jun/21 ] |
|
Still an issue on 1.17. |
| Comment by Wisq [ 10/Jun/20 ] |
|
This remains unfixed as of 1.15.2, but I asked the owner of the RCON newline fix mod if it could be updated for 1.15.2, and they just uploaded the 1.15.2 version (thanks!), so rcon is once again patched and working properly on my server. It would be really nice to get this fixed at some point, though. I'm pretty sure it's just a one-line fix somewhere! |
| Comment by Altus [ 07/Mar/20 ] |
|
Still a problem as of 1.15.2 on Windows 10 For example, when sending the command "op" with no accompanying username the following is returned "Unknown commandop<–[HERE]" When it should be "Unknown command This is very troublesome when executing commands that return a large number of lines, that are then not separated by line-breaks as they would be in game, or in the server console itself |
| Comment by Marcus H [ 26/Oct/18 ] |
|
Confirmed for 1.13.2, can we please fix this??? |
| Comment by Liam Fry [ 22/Sep/18 ] |
|
1.13.1 still has this issue. |
| Comment by null (Inactive) [ 03/Jul/18 ] |
|
Based on Minecraft 1.12.2 decompiled via MCP 9.40 The class net.minecraft.network.rcon.RConConsoleSource mimics a command sender and records the messages sent to it. The sendMessage(ITextComponent) method in that class, which adds a chat message to the buffer, should add an additional newline. |
| Comment by Julian [ 26/Apr/18 ] |
|
1.12.2 still has that issue |
| Comment by Seblor [ 20/Jun/17 ] |
|
1.12 Still has missing newline markers. |
| Comment by Daniel Hodgson [ 12/Jan/17 ] |
|
1.11.2 still has this issue. Come on guys, I know this isn't exactly a major feature, but this is such a stupid simple issue. The client already renders the console properly, so I find it hard to believe this would be a difficult bug to fix. |
| Comment by Olle Kelderman [ 27/Sep/16 ] |
|
just tested this with "minecraft_server.1.10.2.jar", can confirm it is still an issue! |
| Comment by Galaxy_2Alex [ 26/Sep/16 ] |
|
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue. Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. It will be reopened as soon as the requested information has been delivered. |
| Comment by Galaxy_2Alex [ 26/Oct/14 ] |
|
Reopened, thanks. @dx: I gave you reporter access, so you can change the ticket as you like. |
| Comment by dx [ 26/Oct/14 ] |
|
1.8.1pre3 server is affected. Launcher is irrelevant. Can the title be changed to "RCON output has newlines removed" or similar? Please? Anyone? This title seriously is terrible. |
| Comment by Olle Kelderman [ 10/Jul/14 ] |
|
I have just tested this with the latest snapshot currently available (14w28a). Still happening. |
| Comment by user-f2760 (Inactive) [ 09/Jul/14 ] |
|
you mean 27b |
| Comment by Deleted account [ 09/Jul/14 ] |
|
Is this still a concern in the current Minecraft version 14w21b / Launcher version 1.4.4 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. |
| Comment by Olle Kelderman [ 06/May/14 ] |
|
Can confirm this for server version 14w18b (launcher version is irrelevant). |
| Comment by dx [ 07/Feb/14 ] |
|
I suggest changing the subject to mention that unsplit means "newlines removed". It wasn't obvious enough at first sight. |
| Comment by dx [ 07/Feb/14 ] |
|
1.7.4 server is affected. Launcher is irrelevant. 14w06b server is affected too. |
| Comment by Galaxy_2Alex [ 22/Jan/14 ] |
|
Is this still a concern in the current Minecraft version 1.7.4 / Launcher version 1.3.8 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. |
| Comment by Max Mayr [ 27/Nov/13 ] |
|
Yes, the 1.7.2 server still returns unsplit strings |
| Comment by Talven81 [ 26/Nov/13 ] |
|
Is this still a concern in the current Minecraft version 1.7.2 / Launcher version 1.3.4 ? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. |
| Comment by Max Mayr [ 11/Jul/13 ] |
|
This is still an issue in 1.6.1 and 1.6.2 |
| Comment by Fredrik Vold [ 18/Mar/13 ] |
|
Yes, this affects 1.5 as well. Exactly the same, no changes at all. |