# 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>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki-en.herrtechniker.eu/bungeesystem/module/onlinetime.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
