Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparation with colored name #7266

Open
1 task done
Florenthz opened this issue Dec 16, 2024 · 7 comments
Open
1 task done

Comparation with colored name #7266

Florenthz opened this issue Dec 16, 2024 · 7 comments
Labels
waiting for reply The report needs a response from the reporter to determine course of action.

Comments

@Florenthz
Copy link

Florenthz commented Dec 16, 2024

Skript/Server Version

Skript v2.9.5
Paper v1.21.1 #130

Bug Description

When I try to compare a name which has "&6" doesnt work, but works when I remove the "&6"

Expected Behavior

A broadcast should be to appear saying "OK"

Steps to Reproduce

on spawn of zombie:
if spawn reason is spawn egg:
if name of spawned entity contains "&6Miner":
broadcast "OK"

Errors or Screenshots

No response

Other

I am using ItemsAdder and MythicMobs, maybe it would be a nice idea to mention
Greetings to Skript team

Agreement

  • I have read the guidelines above and affirm I am following them with this report.
@APickledWalrus
Copy link
Member

It probably is not converting the string. Does it work if you do if name of spawned entity contains "§6Miner":?

@APickledWalrus APickledWalrus added the waiting for reply The report needs a response from the reporter to determine course of action. label Dec 17, 2024
@Florenthz
Copy link
Author

Hi, I tried just now but doest not work :(
on spawn of zombie:
if name of spawned entity contains "§6Miner":
broadcast "OK"

@Florenthz
Copy link
Author

Florenthz commented Dec 17, 2024

Update:
I tried without & or § but does'nt work either

on spawn of zombie:
if name of spawned entity contains "Miner":
broadcast "OK"
else:
broadcast "%spawned entity's name%"

And when zombie spawns the broadcast says " none " between < >
image

@APickledWalrus
Copy link
Member

Can you try adding a delay? Even just a few ticks.

@Florenthz
Copy link
Author

Sure

@Florenthz
Copy link
Author

Florenthz commented Dec 17, 2024

Same happens, none

@Florenthz
Copy link
Author

Can you try adding a delay? Even just a few ticks.

Hi, are you there friend?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for reply The report needs a response from the reporter to determine course of action.
Projects
None yet
Development

No branches or pull requests

2 participants