NucleusPowered / Nucleus

The Ultimate Essentials Plugin for Sponge.
http://nucleuspowered.org
MIT License
158 stars 70 forks source link

Capitalised colour codes doesn't check permissions #1616

Closed Blve151 closed 3 years ago

Blve151 commented 3 years ago

What is the bug? If someone can't write in the chat for example, "&c&ltest bold red" they can still do "&C&Ltest bold red". Also tested with just LP/Nulceus/SpongeForge/Pixelmon, so nothing else should be touching the chat.

What version of Nucleus are you running? Nucleus-2.3.3-MC1.12.2-SpongeAPI7.3

What version of Sponge are you running? 7.3.0

Provide a link to the file generated by /nucleus info https://pastebin.com/Yh3JV8vv

To Reproduce Steps to reproduce the behavior:

  1. Have a user with no nucleus chat colour perms
  2. Type in chat, use colour codes that are capitalised eg. "&A"
  3. It should send with working colour.

Expected behavior The message to be posted with the colours stripped as they don't have perms.

Logs (Not applicable)

dualspiral commented 3 years ago

https://github.com/NucleusPowered/Nucleus/commit/314c198eb13ad23ea7c62f155bce9b64faff2201