> For the complete documentation index, see [llms.txt](https://wiki.dyroxplays.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.dyroxplays.de/abstimmungen/konfiguration.md).

# Konfiguration

### Allgemeine Einstellungen

* **prefix**: Der Präfix, der vor allen Plugin-Nachrichten angezeigt wird.

  ```yaml
  prefix: '&7[&aAbstimmung&7]'
  ```
* **AddMoneyCommand**: Befehl zum Hinzufügen von Geld für einen Spieler.

  ```yaml
  AddMoneyCommand: eco give %player% %money%
  ```
* **RemoveMoneyCommand**: Befehl zum Abziehen von Geld von einem Spieler.

  ```yaml
  RemoveMoneyCommand: eco take %player% %money%
  ```
* **cooldownsec**: Cooldown-Zeit in Sekunden, bevor ein Spieler eine neue Abstimmung starten kann.

  ```yaml
  cooldownsec: 43200
  ```
* **invname**: Name des Inventars (GUI) für Abstimmungen.

  ```yaml
  invname: '&aAbstimmung'
  ```
* **invreihen**: Anzahl der Reihen im Inventar (GUI).

  ```yaml
  invreihen: 3
  ```
* **yes**: Text für "Ja" Stimme.

  <pre class="language-yaml"><code class="lang-yaml"><strong>'yes': '&#x26;aJa'
  </strong></code></pre>
* **no**: Text für "Nein" Stimme.

  ```yaml
  'no': '&cNein'
  ```
* **overyes**: Beschreibung, wenn der Spieler über "Ja" hovert.

  ```yaml
  overyes: '&7Stimme für &aJa &7ab'
  ```
* **overno**: Beschreibung, wenn der Spieler über "Nein" hovert.

  ```yaml
  overno: '&7Stimme für &cNein &7ab'
  ```

### Nachrichten

* **messages**: Alle Nachrichten, die das Plugin an Spieler senden kann.

  ```yaml
  messages:
    result: '&eDas Ergebnis von der Abstimmung von %player% lautet:'
    fixabstimmung: '&a%player%''s Cooldown wurde aufgehoben, er kann nun eine neue Abstimmung starten.'
    finished: '&cAbstimmung bereits abgelaufen'
    voted: '&aDu hast für %vote% Abgestimmt'
    errorvoted: '&cDu hast bereits für diese Abstimmung eine Stimme abgegeben.'
    enterplayername: '&cBitte gebe einen Spielernamen an.'
    noperm: '&cDazu hast du keine Rechte.'
    notenoughmoney: '&cDu brauchst mind. %money% $, Vorgang abgebrochen.'
    notonlne: '&cDer Spieler ist nicht online, Vorgang abgebrochen.'
    success: '&aEine Abstimmung wurde gestartet.'
    error: '&cDu kannst erst wieder in %hour% Stunden, %min% Minuten und %sec% Sekunden eine Abstimmung starten!'
    usage: '&cNutze: /fixabstimmung <Spieler>'
  ```

### Abstimmungsoptionen

* **votes**: Definierte Abstimmungsoptionen mit verschiedenen Aktionen und Preisen.

#### Beispiel für eine Ban-Abstimmung:

```yaml
'10':
  material: BARRIER
  shortid: 0
  price: 15000
  name: '&eAbstimmung starten:'
  lore:
    - '&7Wirft einen bösen Spieler &cfür 5 Minuten raus!'
    - '&7Preis: &a15000$'
  playernameneeded: true
  command: '[CONSOLE]ban %player% 5min Abstimmung'
  broadcast:
    start:
      - '&a'
      - '&a============'
      - '&7%player% hat eine &eBanabstimmung für %target% gestartet'
      - '&7Soll %target% gebannt werden?'
      - '%vote%'
      - '&a============&a'
      - '&b'
    'no':
      - '&a'
      - '&a============'
      - '&7%player%''s Abstimmung hat folgendes Ergebnis'
      - '%result%'
      - '&7Das heißt, dass %target% nicht gebannt wird'
      - '&a============&a'
      - '&b'
    'yes':
      - '&a'
      - '&a============'
      - '&7%player%''s Abstimmung hat folgendes Ergebnis'
      - '%result%'
      - '&7Das heißt, dass %target% gebannt wurde.'
      - '&a============&a'
      - '&b'
```

#### Beispiel für eine "Clear Items" Abstimmung:

```yaml
'12':
  material: NAME_TAG
  shortid: 0
  price: 5000
  name: '&eAbstimmung starten:'
  lore:
    - '&7Alle Items auf dem Boden &clöschen'
    - '&7Preis: &a5000$'
  playernameneeded: false
  command: '[CONSOLE]kill @e[type=Item]'
  broadcast:
    start:
      - '&a'
      - '&a============'
      - '&7%player% hat eine &eItems auf dem Boden löschen Abstimmung gestartet'
      - '&7Sollen die Items auf dem Boden gelöscht werden?'
      - '%vote%'
      - '&a============&a'
      - '&b'
    'no':
      - '&a'
      - '&a============'
      - '&7%player%''s Abstimmung hat folgendes Ergebnis'
      - '%result%'
      - '&7Das heißt, dass die Items nicht entfernt werden'
      - '&a============&a'
      - '&b'
    'yes':
      - '&a'
      - '&a============'
      - '&7%player%''s Abstimmung hat folgendes Ergebnis'
      - '%result%'
      - '&7Das heißt, dass die Items entfernt werden'
      - '&a============&a'
      - '&b'
```

#### Beispiel für eine "Tag" Zeitumstellung:

```yaml
'14':
  material: WATCH
  shortid: 0
  price: 2500
  name: '&eAbstimmung starten:'
  lore:
    - '&7Zeit auf &cTag ändern'
    - '&7Preis: &a2500$'
  playernameneeded: false
  command: '[CONSOLE]time set day'
  broadcast:
    start:
      - '&a'
      - '&a============'
      - '&7%player% hat eine &eZeit auf Tag setzen Abstimmung gestartet'
      - '&7Soll die Uhrzeit auf Tag gesetzt werden?'
      - '%vote%'
      - '&a============&a'
      - '&b'
    'no':
      - '&a'
      - '&a============'
      - '&7%player%''s Abstimmung hat folgendes Ergebnis'
      - '%result%'
      - '&7Das heißt, dass die Uhrzeit nicht auf Tag umgestellt wird'
      - '&a============&a'
      - '&b'
    'yes':
      - '&a'
      - '&a============'
      - '&7%player%''s Abstimmung hat folgendes Ergebnis'
      - '%result%'
      - '&7Uhrzeit wurde auf Tag umgestellt'
      - '&a============&a'
      - '&b'
```

#### Beispiel für eine "Nacht" Zeitumstellung:

```yaml
'16':
  material: WATCH
  shortid: 0
  price: 2500
  name: '&eAbstimmung starten:'
  lore:
    - '&7Zeit auf &cNacht ändern'
    - '&7Preis: &a2500$'
  playernameneeded: false
  command: '[CONSOLE]time set night'
  broadcast:
    start:
      - '&a'
      - '&a============'
      - '&7%player% hat eine &eZeit auf Nacht setzen Abstimmung gestartet'
      - '&7Soll die Uhrzeit auf Nacht gesetzt werden?'
      - '%vote%'
      - '&a============&a'
      - '&b'
    'no':
      - '&a'
      - '&a============'
      - '&7%player%''s Abstimmung hat folgendes Ergebnis'
      - '%result%'
      - '&7Das heißt, dass die Uhrzeit nicht auf Nacht umgestellt wird'
      - '&a============&a'
      - '&b'
    'yes':
      - '&a'
      - '&a============'
      - '&7%player%''s Abstimmung hat folgendes Ergebnis'
      - '%result%'
      - '&7Uhrzeit wurde auf Nacht umgestellt'
      - '&a============&a'
      - '&b'
```

Diese Konfigurationsdatei ermöglicht es, verschiedene Abstimmungen mit spezifischen Preisen und Aktionen zu erstellen. Die Nachrichten und das GUI können vollständig angepasst werden, um den Anforderungen des Servers zu entsprechen.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.dyroxplays.de/abstimmungen/konfiguration.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.
