Skip to content

console hex support giving me weird behavior #5248

@mrfloris

Description

@mrfloris
Bukkit.getConsoleSender().sendMessage("§x§a§a§a§a§0§0Test"); # Works
Bukkit.getConsoleSender().sendMessage("§x§a§a§a§a§0§0§eTest"); # Breaks apart because of extra §e color code

Screenshot 2021-02-25 at 15 04 14

What behaviour is expected:

Screenshot 2021-02-25 at 14 55 29

Screenshot 2021-02-25 at 14 56 20

Screenshot 2021-02-25 at 14 56 26

What behaviour is observed:

Screenshot 2021-02-25 at 14 56 59

Screenshot 2021-02-25 at 14 57 07

Screenshot 2021-02-25 at 14 57 18

Screenshot 2021-02-25 at 14 57 21

Steps/models to reproduce:

For example, in CMI using CMI as chat manager, I can enable custom join/leave msgs, and use hex colors. Mine for example look like these:

  FirstJoin: '{#Cerulean>} 1MB Server »{#Lochmara<}{#Feijoa} Welcome new player &6[playerDisplayName]{#Feijoa}
    to 1MoreBlock.com!'
  LogoutCustom: '{#Cerulean} - {#Feijoa}Player &l[playerDisplayName]&r {#Feijoa}left.'
  LoginCustom: '{#Cerulean>} 1MB Server »{#Lochmara<}{#Feijoa} Welcome back &6[playerDisplayName]
    {#Feijoa}❤'
  deathlocation: '{#Cerulean>} 1MB Server »{#Lochmara<}{#Feijoa} You died at x:&6[x]{#Feijoa},
    y:&6[y]{#Feijoa}, z:&6[z]{#Feijoa} in &6[world]'

Note: the > < within the hex color codes make it a gradient as seen in the first screenshot.

Plugin list:

CMI

Paper version:

> version
[14:59:24 INFO]: --------------------------------------------------
[14:59:24 INFO]: CMI plugin version: 8.8.1.5 SqLite
[14:59:24 INFO]: CMILib: 1.0.0.2
[14:59:24 INFO]: Server: Paper(497) 1.16.5-R0.1-SNAPSHOT
[14:59:24 INFO]: CMI economy: True Vault: 1.7.3-b CMI Chat: True
[14:59:24 INFO]: Modules -> 53 enabled 1 disabled: flightCharge
[14:59:24 INFO]: --------------------------------------------------
> ver
[14:59:26 INFO]: This server is running Paper version git-Paper-497 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
[14:59:26 INFO]: Checking version, please wait...
[14:59:27 INFO]: Previous version: git-Paper-496 (MC: 1.16.5)
[14:59:27 INFO]: You are running the latest version
>

Anything else:

Martin mentioned on Discord they wanted a bug report, because it shouldn't be the plugin's that need to get fixed, and it's likely a bug in paper's log event pattern converter. I hope this information for this one particular plugin helps. It's the easiest one for me reproduce at the moment.

Metadata

Metadata

Assignees

Labels

status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.version: 1.16Game version 1.16

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions