Skip to content

Removing items with name from inventory doesn't work properly #2714

Closed
@Thibaut040

Description

@Thibaut040

Description

When you want to remove a named item from a player's inventory, it will remove the type of that item without a name as well.

Steps to Reproduce

  1. Put this in a script:
command /test: 
	trigger:
		remove diamond sword named "SuperSword" from player's inventory
		message "Done!"
		stop
  1. Get yourself a normal diamond sword. (without a name)
  2. Execute the command "test".
    You'll see the diamond sword is removed.
    Paper 1.14.4: All diamonds swords will be removed.
    Paper 1.15.1: However, if the sword has another name (Killer's Sword), it won't be removed.

Expected Behavior

The diamond sword shouldn't be removed.

Errors / Screenshots

/

Server Information

  • Server version/platform: Paper 1.14.4 and 1.15.1
  • Skript version: 2.4

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: 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