replace

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  1. kyem2009

    Help with Extracting Numbers from Item Name in Skript (Regex Issue)

    I’m trying to extract only the numbers from an item’s name in Skript. I tried using the following code, but it’s not working, and I keep getting errors. Here is what I have so far: on right click: set {_name} to name of player's tool set {_number} to "%{_name}%" replace all...
  2. tycoo

    How to replace specific color codes in message?

    When I use "&5" in my chat message, it basicaly doing nothing with it. I can replace only "&" with "", but there will be "5" in the message. on chat: cancel event set {_msg} to message replace all "&5" with "" in {_msg} send {_msg} to all players
  3. 2

    Replace effect does not work at all

    I have been wanting to make a chat mention feature to highlight player names in a color like gold. After I finished code like that it didn't work at all. I decided to see what the problem is and simplify everything and it came down do the replace effect not working. I seem to not have had any...
  4. B

    Solved Help with some characters can't replaced.

    Can someone help me with color format isn't replaced Method 1: #looping command /acac [<text>]: trigger: if arg is not set: set {_arg} to "null" set {_name} to "null" if arg is set: set {_arg} to "%arg%" set {_name} to "%arg%"...
  5. Skaya

    Solved Replace <none> variable

    Hi, Is there a way to Replace the default Skript <none> variable? Thx Skaya
  6. P

    Solved Chat replace

    on chat: player's message contains "hi": replace "hi" to "hello" How can I do this?