# Onlinetime

##

## config.yml

### Prefix

The prefix is used by default with every message. It can be set in the message files at the beginning of each message. To set it, simply write `%prefix%` (placeholder). This will then be exchanged by the system with the prefix entered in `config.yml`.

```yaml
prefix: "&7[&bOnlineTeime&7]&r"
```

### show

Under the configuration show you can set which "values" the player can see when entering the command.

```yaml
show:
  seconds: true
  minutes: true
  hours: true
  days: true
  years: true
```

{% hint style="info" %}
If the player has been on the server for only 1 minute, only 1 minute will be displayed. The same is if the player was online for 1 day, 2 hours 42 minutes and 9 seconds, only that will be displayed.
{% endhint %}

### Aliases

You can also define so called aliases which you can enter instead of /onlinetime. For this you simply add further points under the point `aliases`.

```yaml
aliases:
  - "ot"
```

### Default configuration

```yaml
onlinetime:
  prefix: "&7[&bOnlineTeime&7]&r"
  show:
    seconds: true
    minutes: true
    hours: true
    days: true
    years: true
  aliases:
    - "ot"
```

## Command

### Syntax

```
/onlinetime <player>
```
