double ## breaking
EquipableMC opened this issue ยท 1 comments
Skript/Server Version
[01:48:21 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[01:48:21 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[01:48:21 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[01:48:21 INFO]: [Skript] Server Version: 1.20.6-148-20f5165 (MC: 1.20.6)
[01:48:21 INFO]: [Skript] Skript Version: 2.9.0-pre1 (skriptlang-github)
[01:48:21 INFO]: [Skript] Installed Skript Addons:
[01:48:21 INFO]: [Skript] - skript-placeholders v1.6.0 (https://github.com/APickledWalrus/skript-placeholders)
[01:48:21 INFO]: [Skript] - skript-gui v1.3 (https://github.com/APickledWalrus/skript-gui)
[01:48:21 INFO]: [Skript] - skript-particle v1.3.1 (https://github.com/sovdeeth/skript-particle)
[01:48:21 INFO]: [Skript] - DiSky v4.17.3
[01:48:21 INFO]: [Skript] - skript-yaml v1.5
[01:48:21 INFO]: [Skript] - skript-reflect v2.4-for-2.9-beta (https://github.com/SkriptLang/skript-reflect)
[01:48:21 INFO]: [Skript] - SkBee v3.5.6 (https://github.com/ShaneBeee/SkBee)
[01:48:21 INFO]: [Skript] - skript-citizens v1.0.0
[01:48:21 INFO]: [Skript] Installed dependencies:
[01:48:21 INFO]: [Skript] - Vault v1.7.3-b131
[01:48:21 INFO]: [Skript] - WorldGuard v7.0.10+d9424b1
Bug Description
So if I use set {_prefix} to colored (player's prefix).replaceAll("&##([a-fA-F0-9]{6})", "<##$1>")
it breaks and just returns the luckperms hex color code. I read that double ## was accepted as well and can still be used, but that doesn't seem to be the case
Expected Behavior
properly replace the luckperms hex format to support skript's hex format
Steps to Reproduce
on chat:
set {_prefix} to colored (player's prefix).replaceAll("&#([a-fA-F0-9]{6})", "<#$1>")
set chat format to "%{_prefix}% %player% %message%"
this should properly replace, but it doesn't.
Errors or Screenshots
having the double ##
replacing it to be singular #
Other
I don't know if this would be a skript-reflect issue or a skript issue so I am opening it here.
Agreement
- I have read the guidelines above and affirm I am following them with this report.