Skip to content

Timespan not parsing when using variables #2193

Description

@Whimsyturtle

Description

Skript can parse timestamps when the values are given directly, e.g. 5 seconds, but is unable to do so when the direct value is replaced with a variable, e.g. {_x} seconds or arg-1 seconds

Steps to Reproduce

command /test <number>:
    trigger:
        set {_t} to arg-1 seconds
        set {_n} to arg-1
        set {_t} to {_n} seconds

Expected Behavior

For the timespan to be properly parsed

Errors / Screenshots

Line 3: Can't understand this expression: 'arg-1 seconds' (script.sk, line 3: set {_t} to (arg-1) seconds')
Line 5: Can't understand this expression: '{_n} seconds' (script.sk, line 5: set {_t} to {_n} seconds')

Server Information

  • Server version/platform: Spigot 1.14.2
  • Skript version: 2.4.1-alpha3

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions