Skip to content

Commit 87c7a95

Browse files
committed
can't forget docs
1 parent de8be6b commit 87c7a95

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/main/java/ch/njol/skript/expressions/ExprFirstEmptySlot.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package ch.njol.skript.expressions;
22

33
import ch.njol.skript.Skript;
4+
import ch.njol.skript.doc.*;
45
import ch.njol.skript.expressions.base.SimplePropertyExpression;
56
import ch.njol.skript.lang.ExpressionType;
67
import ch.njol.skript.util.slot.InventorySlot;
@@ -12,6 +13,15 @@
1213
import java.util.Arrays;
1314
import java.util.List;
1415

16+
@Name("First Empty Slot in Inventory")
17+
@Description("Returns the first empty slot in an inventory. If no empty slot is found, it returns nothing.")
18+
@Example("set the first empty slot in player's inventory to 5 diamonds")
19+
@Example("""
20+
if the first empty slot in player's inventory is not set:
21+
message "No empty slot available in your inventory!" to player
22+
""")
23+
@Since("INSERT VERSION")
24+
@Keywords({"full", "inventory", "empty", "air", "slot"})
1525
public class ExprFirstEmptySlot extends SimplePropertyExpression<Inventory, Slot> {
1626

1727
static {

0 commit comments

Comments
 (0)