Skip to content

Type literal parsing doesn't work on types with spaces #8310

@Fusezion

Description

@Fusezion

Skript/Server Version

[07:31:53 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[07:31:53 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[07:31:53 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[07:31:53 INFO]: [Skript] Server Version: 1.21.8-60-29c8822 (MC: 1.21.8)
[07:31:53 INFO]: [Skript] Skript Version: 2.13.2 (skriptlang-github)
[07:31:53 INFO]: [Skript] Installed Skript Addons:
[07:31:53 INFO]: [Skript]  - skript-reflect v2.6.1 (https://github.com/SkriptLang/skript-reflect)
[07:31:53 INFO]: [Skript]  - skript-particle v1.3.2 (https://github.com/sovdeeth/skript-particle)
[07:31:53 INFO]: [Skript]  - skript-placeholders v1.7.0 (https://github.com/APickledWalrus/skript-placeholders)
[07:31:53 INFO]: [Skript]  - skript-gui v1.3.2 (https://github.com/APickledWalrus/skript-gui)
[07:31:53 INFO]: [Skript]  - DiSky v4.26.0
[07:31:53 INFO]: [Skript]  - Hippo v1.3
[07:31:53 INFO]: [Skript]  - SkBee v3.13.2 (https://github.com/ShaneBeee/SkBee)
[07:31:53 INFO]: [Skript]  - skript-yaml v1.7.2
[07:31:53 INFO]: [Skript]  - SkBriggy v1.5.6 (https://github.com/ShaneBeee/SkBriggy)
[07:31:53 INFO]: [Skript]  - oopsk v1.0-beta1 (https://github.com/sovdeeth/oopsk)
[07:31:53 INFO]: [Skript] Installed dependencies:
[07:31:53 INFO]: [Skript]  - Vault v2.4.9

Bug Description

When you give skript a type literal to parse that has a space, it only attempts to parse the last half.

Expected Behavior

Skript to be able to correctly attempt to resolve type literals when they have spaces

Steps to Reproduce

Provide any literal with a space i.e. dragon's breath and then provide skript a type to parse it as i.e. damage cause

on load:
	broadcast dragon's breath (damage cause)

Errors or Screenshots

Image

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.needs triageAn issue that hasn't been classified or verified yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions