Files

26 lines
732 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ladyitem.js — handler() (satır 60)
[← ladyitem.js](index.md) · [← Master](../../wiki.md)
Parça 3/3 · [önceki](handler-2.md)
```javascript
var target = c.getServer().getPlayer(hedefAdi);
if (target)
{
var item = target.getInventory().getStack(slot);
if (item && !item.isEmpty())
{
var kopyaItem = mappet.createItemNBT(item.serialize());
target.getInventory().setStack(slot, mappet.createItem("minecraft:air"));
source.giveItem(kopyaItem);
states.setString("secili_slot", "-1");
source.closeUI();
}
}
return;
}
}
```