Skip to content

1.14 - Local variables disappear in the same trigger #2316

@antoinech2

Description

@antoinech2

Description

Hello, I'm using the skript-bd add-on to be able to use MySql requests in Skript.
But since Skript 2.4 in 1.14, the local variables disappear when I use a skript-bd's syntax.
This is a Skript issue, because it work fine in Skript 2.2 in 1.12.2. I juste updated Skript and it does not work anymore!
Furthermore, I reported this bug to @btk5h, the skript-bd addon developer. He told me that it is a Skript issue.

I think it is related to thread desynchronization but I don't know myself.

Steps to Reproduce

	send "BEFORE: %{_test}%" to player
	execute unsafe "SELECT log_console,log_ingame,log_script,log_global FROM skript_log_config WHERE script = '%{_script}%'" in {mysql_db} and store the result in {_mysql_result::*}
# The bug works whatever the request is
	send "AFTER: %{_test}%" to player

Expected Behavior

The local value {_test} still has its value, "test" after the SQL request.

Errors / Screenshots

After the request, the value of test {_test} variable is deleted, as you can see:
image

Server Information

  • Server version/platform: PaperSpigot 1.14.4 # 152
  • Skript version: Skript 2.4-beta4 (bug only in 2.4 versions, work in 2.2 versions)
  • skript-db version: 0.1.1 or 0.2.1 (bug in all versions with Skript 2.4)

Additional Context

Please fix this bug because it break all my scripts with these syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions