Skip to content

"inventory close reason" Expression return nothing #8462

@Xgabi86

Description

@Xgabi86

Skript/Server Version

[12:49:44 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[12:49:44 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[12:49:44 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[12:49:44 INFO]: [Skript] Server Version: 1.21.8-60-29c8822 (MC: 1.21.8)
[12:49:44 INFO]: [Skript] Skript Version: 2.14.1 (skriptlang-github)
[12:49:44 INFO]: [Skript] Installed Skript Addons: 
[12:49:44 INFO]: [Skript]  - RiftoriaPlugin v1.1
[12:49:44 INFO]: [Skript]  - SkBee v3.16.1 (https://github.com/ShaneBeee/SkBee)
[12:49:44 INFO]: [Skript] Installed dependencies: 
[12:49:44 INFO]: [Skript]  - WorldGuard v7.0.14+2339-43997ec

Bug Description

when trying to use/broadcast the "inventory close reason", it always return nothing.

on inventory close:
    broadcast inventory close reason                       # --> Nothing
    broadcast "%inventory close reason%"              # --> <none>

Expected Behavior

Return the "inventory close reason" (disconnect, death, teleport, cannot use, new opened, unknown, can't use, unloaded, disconnected, plugin, can not use, open new, player)

https://skripthub.net/docs/?id=10171

Steps to Reproduce

Just paste this code on .sk file, reload this file and close an inventory.

on inventory close:
    broadcast inventory close reason                       # --> Nothing
    broadcast "%inventory close reason%"              # --> <none>

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.completedThe issue has been fully resolved and the change will be in the next Skript update.good first issueAn issue that would be good for a first-time contributor to make a PR forpriority: mediumIssues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).

    Type

    No type

    Projects

    Status

    Done - Awaiting Release

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions