CustomItemCommand

class CustomItemCommand(commandName: String? = null, configBlock: CustomItemCommand.CommandConfig.() -> Unit = {})

Represents a command that allows giving a registered custom item to a player.

This class is used to register a command that lets a player receive a custom item in-game, either for themselves or another player. The command can suggest item IDs and player names, making it easier to use.

Parameters

commandName

The name of the command to register. Defaults to "ngive" if not provided.

configBlock

A block to configure the command's properties such as its name, description, and permission.

Constructors

Link copied to clipboard
constructor(commandName: String? = null, configBlock: CustomItemCommand.CommandConfig.() -> Unit = {})

Types

Link copied to clipboard

Configuration options for the custom item command.