# Configuration

## General tags

### \[MESSAGE]

Send a message to the player

Example:

```yaml
- "[MESSAGE] &aThis a test &#c03afem&#af31fae&#9e28f5s&#8e1ff1s&#7d15eda&#6c0ce8g&#5b03e4e for %player_name%" 
```

### \[DEBUG]

Send a message to the console

Example:

```yaml
- "[DEBUG] This is a test message to the console"
```

### \[GLOBAL]

Sends a message without format to all players

Example:

```yaml
- "[GLOBAL] This is a global message"
```

### \[BROADCAST]

Sends a TChat broadcast to all players

Example:

```yaml
- "[BROADCAST] This is a broadcast message with the TChat format"
```

### \[WARNING]

Sends a TChat warning to all players

Example:

```yaml
- "[WARNING] This is a warning message with the TChat format"
```

### \[ANNOUNCEMENT]

Sends a TChat announcement to all players

Example:

```yaml
- "[ANNOUNCEMENT] This is a announcement message with the TChat format"
```

### \[TITLE]

Send a title and subtitle to the player

Example:

```yaml
- "[TITLE] Title:subtitle"
```

### \[PLAYER\_COMMAND]

Execute a command as a player

Example:

```yaml
- "[PLAYER_COMMAND] warp survival"
```

### \[CONSOLE\_COMMAND]

Execute a command as a console

Example:

```yaml
- "[CONSOLE_COMMAND] kill {player}"
```

### \[SOUND]

Plays a sound when executing the command

Example:

```yaml
- "[SOUND] AMBIENT_CRIMSON_FOREST_MOOD"
```

### \[PARTICLE]

Executes a particle at the player's coordinates when executing the command

Example:

```yaml
- "[PARTICLE] CHERRY_LEAVES"
```

### \[TELEPORT]

Teleports the player to a specific coordinate when executing the command

Example:

```yaml
- "[TELEPORT] world;54;70;23"
```

### \[ACTION\_BAR]

Displays an action bar when executing the command

Example:

```yaml
- "[ACTION_BAR] &bThis a test action bar!"
```

### \[INVENTORY]

Interacts with the player's inventory

ADD - Add an item to the player's inventory\
REMOVE - Removes an item from player's inventory\
CHANGE- Checks to see if he has the first item and if he does, removes it and gives him the second item

Example:

```yaml
- "[INVENTORY] ADD DIRT 1"
- "[INVENTORY] REMOVE APPLE 1"
- "[INVENTORY] CHANGE DIRT 1 GRASS_BLOCK 1"
```

### \[POTION\_EFFECT]

Interacts with player's potion effects (add/remove)

Example:

```yaml
- "[POTION_EFFECT] ADD SPEED:240:2"
```

(240 = time in seconds | 2 = effect level)

### \[BUNGEECORD]

Moves a server from the bungeecord to the player when executing a command

Example:

```yaml
- "[BUNGEECORD] lobby"
```

### \[CLICK\_ACTION]

Send a message with action on click (Text Component)

Example:

```yaml
- "[CLICK_ACTION] OPEN https://tect.host/ | Click here to go to tect.host
- "[CLICK_ACTION] EXECUTE /msg %player% This is a test MSG from TChat by Tect.host | Click here to execute a test command
- "[CLICK_ACTION] SUGGEST /spawn | Click here to get a suggested command
```

### \[CHATCOLOR]

Sets the color or format of the executing player

COLOR - Sets the color in chatcolor \
FORMAT - Sets the format in chatcolor

Example:

```yaml
- "[CHATCOLOR] COLOR &2"
- "[CHATCOLOR] FORMAT &l"
```

### \[MUTE]

Mutes the executing player

Duration:

* s = seconds
* m = minutes
* h = hours
* d = days
* w = weeks
* M = months

Example:

```yaml
- "[MUTE] 5m"
- "[MUTE] -1"
```

### \[SLEEP]

Wait a specified number of seconds, ticks or ms before proceeding with actions

Example:

```yaml
- "[SLEEP] 5s"
- "[SLEEP] 100t"
- "[SLEEP] 5000ms"
```

### \[XP]

Adds a removes an amount of XP from chat levels

Example:

```yaml
- "[XP] ADD 5"
- "[XP] REMOVE 10"
- "[XP] SET 90"
```

### \[LEVEL]

Adds a removes an amount of level from chat levels

Example:

```yaml
- "[LEVEL] ADD 5"
- "[LEVEL] REMOVE 10"
- "[LEVEL] SET 90"
```
