Skip to content

Nested variables erroring in 2.6-beta1 #4143

Closed
@Th-Underscore

Description

@Th-Underscore

Description

Nested variables are erroring when they shouldn't.

Steps to Reproduce

A variable nested in another variable, nested in another variable always errors.
Any variable like {foo::%{bar::%{_beep}%}%} or {mcc.teams::%{mcc.team.%{_p}%}%} always errors.
My current code is:

on script load:
    broadcast "%{mcc.teams::%{mcc.team.%{_p}%}%}% <white>have all been eliminated!"
    broadcast "%{test::%{_test}%}%"
    broadcast "%{foo::%{bar::%{_beep}%}%}%"
    set {foo::%{bar::%{_beep}%}%} to "test"

Expected Behavior

It shouldn't error and work like other variables such as {foo::bar}, but they don't.

Errors / Screenshots

image

Server Information

  • Server version/platform: Paper version git-Paper-68 (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT) (Git: f18dc1e)
  • Skript version: 2.6-beta1

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.completedThe issue has been fully resolved and the change will be in the next Skript update.priority: highIssues with potentially high impact that could be harmful to users.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions