Skript: 'uncoloured message' doesn't remove 搂x

Created on 6 Jul 2020  路  3Comments  路  Source: SkriptLang/Skript

Description

When trying to uncolour a message in the new hex colour code system, the opening 搂x is not removed from the result, making it difficult to work with hex coloured messages.

Steps to Reproduce

on chat:
    send "%uncoloured message%"

Then send hex coloured message in chat
(See screenshot for resulting behaviour)

Expected Behavior

搂x should be treated as a colour code, and removed from 'uncoloured message'

Errors / Screenshots

As you can see, the 'x' is left in
http://prntscr.com/tckvt7
(Giraffe was #FF0000, Cubed was &e)

Server Information

  • Server version/platform: Paper 1.16.1 (ver 73)
  • Skript version: 2.5 Alpha 5
bug completed medium

Most helpful comment

image

patched if #3098 is merged

All 3 comments

This will probably be fixed in #3098

image

patched if #3098 is merged

I gave my affected code a test with #3098 and it is solved, thanks @APickledWalrus

Was this page helpful?
0 / 5 - 0 ratings