EssentialsX / Essentials

The modern Essentials suite for Spigot and Paper.
https://essentialsx.net
GNU General Public License v3.0
1.95k stars 981 forks source link

Add /take command #592

Closed ghost closed 4 years ago

ghost commented 8 years ago

Contrary to /give command function /take <item|numeric> [amount [itemmeta...]] /take XYBlue 1 64 name:Diamond lore:A diamond Can you add this new feature? Thank you!

techied commented 8 years ago

You can use /invsee and pull the item[s] out of their inventory or if you do not need the item, use /clear (playerName) [item:data] [amount]

ghost commented 8 years ago

@techied Thank you very much, but I can not use the /clear XYBlue 164 name:Diamond lore:A diamond.Name and lore are not working.It will tell me that I don't have this item

techied commented 8 years ago

Try /clear XYBlue 164 {name:Diamond,lore:"A diamond"}

or (1.7 and above) /clear XYBlue Diamond {name:Diamond,lore:"A diamond"}

ghost commented 8 years ago

It will still clean up items that do not have lore and name.And also can not clean up the lore and name items

pop4959 commented 4 years ago

Invsee is perfectly fine for this purpose. Don't see the point in adding an extremely specific and complicated command to handle removing items from someone's inventory.

Also there is already another issue open for the /clear command supporting filtering by item type. This might be effectively what you're asking for here.

x3mp commented 4 years ago

Reopening. Invsee does not do the job for command execution. I want to be able to clear a specific item with a specific item meta from a player their inventory. This can not be done with any /take or /clear command I have a renamed rotten_flesh that I want to be cleared but when I do /eclean or any clean/clear command it says 0 rotten_flesh removed from their inventory even though they have it in there.

I use color codes and lore with multiple lines for this item