SkriptLang / Skript

Skript is a Spigot plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
https://docs.skriptlang.org
GNU General Public License v3.0
1.07k stars 368 forks source link

Issue with name of event-inventory #7218

Open Abendsaufstehen opened 3 hours ago

Abendsaufstehen commented 3 hours ago

Skript/Server Version

[15:51:01 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[15:51:01 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[15:51:01 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[15:51:01 INFO]: [Skript] Server Version: 1.21-130-b1b5d4c (MC: 1.21)
[15:51:01 INFO]: [Skript] Skript Version: 2.9.4 (skriptlang-github)
[15:51:01 INFO]: [Skript] Installed Skript Addons:
[15:51:01 INFO]: [Skript]  - PermSk v2.0.0 (https://iplexy.de)
[15:51:01 INFO]: [Skript]  - SkBee v3.6.0 (https://github.com/ShaneBeee/SkBee)
[15:51:01 INFO]: [Skript]  - SkBriggy v1.4.2 (https://github.com/ShaneBeee/SkBriggy)
[15:51:01 INFO]: [Skript] Installed dependencies: None

Bug Description

If you check the name of a gui that contains a emoji (even those that work in minecraft e.g. ⛏)

You also dont get any error messages while reloading the scripts!

Expected Behavior

image_2024-11-18_165337283

It should send "debug" to the player

Steps to Reproduce

  1. Create a GUI with a Emoji in the name (e.g. "&8⛏ Mining Skill")
  2. Use the "on inventory click:" event in pair with "if name of event-inventory is "&8⛏ Mining Skill"":
  3. Reload and no Errors, but it does not work

Errors or Screenshots

There are no erros in the console, and no erros while reloading or testing it with the bug

Other

No response

Agreement

sovdeeth commented 3 hours ago

Cannot replicate on 2.9.4:

command test:
    trigger:
        open chest inventory named "&8⛏ Mining Skill" to player

on inventory click:
    broadcast "%name of event-inventory%"
    if name of event-inventory is "&8⛏ Mining Skill":
        send "test"

image image