public ItemModule
@Deprecated
void spawnItem(@NotNull
java.lang.String tag,
@NotNull
org.bukkit.inventory.ItemStack itemStack)
Spawn a floating item.
tag - Name of the coordinate tag designating the spawnpoint.itemStack - ItemStack which represents attribute of the item.@NotNull
org.bukkit.entity.Item spawnItem(@NotNull
org.bukkit.Location location,
@NotNull
org.bukkit.inventory.ItemStack item)
Spawn a floating item.
@Nullable ItemTag getItemTag(@NotNull java.lang.String name)
Get class ItemTag by searching for name.
One tag stores ItemStack information for one item. Tags are created via '/itag create' in editor mode.
class ItemTag,
name,
ItemStack@Nullable
org.bukkit.loot.LootTable getLootTable(@NotNull
java.lang.String key)
void allowKit(boolean respawn)
Let the players select kit inside lobby.
respawn - True if players waiting for respawn should be able to select kit as well.void preventItemDrop()
Prevent players from dropping items.
@Deprecated void lockInventory()
Lock inventory so that players won't be able to move items in it.
void lockPlayerInventory(@NotNull
int... slots)
Lock specific slots of the inventory.
Items in locked slots cannot be dropped, moved or dragged by the player.
slotsvoid setDefaultKit(@Nullable
java.lang.String name)
Default kit is assigned to players who don't select anything.
To assign kit per team, see TeamModule.setKit
name - The name of kit. Pass null to assign nothing.TeamModule.setKitvoid selectKit(@Nullable
java.lang.String name,
@NotNull
org.bukkit.entity.Player player)
Select the player's kit.
Upon death, player's state is restored again with this kit. You can still use this function even if you disallow players to select one.
void applyKit(@NotNull
org.bukkit.entity.Player player)
Apply the selected kit to the player.
After clearing up the inventory, contents are supplied.
player