Skip to main content

Get 25% OFF on your first order with BisectHosting using code "DAQEM"!

Chat

Broadcast

Sends a message to the entire server with a configured prefix.

  • Usage: /broadcast <message>
  • Alias: /bc
  • Permission: necessities.command.broadcast
  • Default Level: 2 (OP)

Reply

Quickly replies to the last person who sent you a private message (via vanilla /msg or /tell).

  • Usage: /reply <message>
  • Alias: /r
  • Permission: necessities.command.reply
  • Default Level: 0 (Everyone)

### 6. Feature Deep Dives

#### Kits
Create `docs/necessities/wiki/features/kits.mdx`.


title: Kits description: Learn how to create and manage custom kits in Necessities.

Necessities features a fully data-driven Kit system. Kits are collections of items that players can claim using the /kit command.

Using Kits

  • List Kits: /kit
  • Claim Kit: /kit <name>
  • Permission: necessities.command.kit
  • Bypass Cooldown: necessities.command.kit.bypass_cooldown

Creating Kits

Kits are defined via JSON files. You can add them in two ways:

  1. Global Config: Inside config/necessities/kits/.
  2. Datapacks: Inside data/<namespace>/necessities/kits/.

File Structure

Create a file named kitname.json. The filename becomes the kit name.

config/necessities/kits/starter.json
{
"cooldown": 3600,
"items": [
{
"id": "minecraft:stone_sword",
"count": 1
},
{
"id": "minecraft:bread",
"count": 16
},
{
"id": "minecraft:leather_helmet",
"count": 1
}
]
}

Parameters

KeyTypeDescription
cooldownLongThe time in seconds the player must wait before claiming the kit again. Set to 0 for no cooldown.
itemsListA list of item objects to give to the player.

Item Object

The item object follows the standard Minecraft format (similar to recipes or loot tables).

{
"id": "minecraft:diamond_sword",
"count": 1,
"components": {
"minecraft:enchantments": {
"levels": {
"minecraft:sharpness": 5
}
}
}
}