Skip to content

Error While Getting Name of ItemStack directly from a return function #4524

Closed
@NotSoDelayed

Description

@NotSoDelayed

Skript/Server Version

image

Bug Description

Getting name of an ItemStack from a return function spits a is neither a .... error.

Expected Behavior

Returns name of an ItemStack from a function, without issues.

Steps to Reproduce

  • Create a function which returns a named item
  • Run send name of FUNCTION()

My tested code:

function getItem() :: item:
    return stone named "&7Innocent Stone"

Errors or Screenshots

image

Other

No response

Agreement

  • I have read the guidelines above and confirm 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.completedThe issue has been fully resolved and the change will be in the next Skript update.priority: mediumIssues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions