> 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/caseopening/commands/givemobilecaseopening.md).

# givemobilecaseopening

Nützliche Hilfsbefehle für das Plugin.

***

## /givemobilecaseopening

Gibt dir ein mobiles Case-Opening-Item.

**Permission:** `caseopening.givemobilecaseopening`

### Verwendung:

```bash
/givemobilecaseopening
```

**Item-Eigenschaften:**

* Material: `NETHER_STAR` (konfigurierbar in `items.yml`)
* Rechtsklick öffnet das Main-GUI
* Funktioniert überall (keine Case-Blöcke nötig)

### Use Cases:

* Verkaufe als Shop-Item
* Gib als Quest-Belohnung
* Verteile an VIPs
* Nutze für Mobile-Events

### Item konfigurieren:

In [items.yml](file:///6293344/configuration.md#itemsyml):

```yaml
mobilecaseoopening:
  material: NETHER_STAR
  amount: 1
  displayname: "§6§lMobiles Case Opening"
  lore:
    - "§7Rechtsklick um das"
    - "§7Case-Menü zu öffnen"
```

***

## /casebc \<Nachricht...>

Sendet eine Broadcast-Nachricht an alle Spieler.

**Permission:** `caseopening.casebc`

### Verwendung:

```bash
/casebc §6Neues Update verfügbar!
/casebc §c§lWICHTIG: §7Server Restart in 5 Minuten!
```

**Unterstützt:**

* Standard Color Codes (`§a`, `§c`, `§6`, etc.)
* Hex-Farben (1.16+): `#FF5733Hallo`
* Formatierungen (`§l`, `§n`, `§o`, etc.)

### Beispiele:

```bash
# Einfache Nachricht
/casebc §aHallo Welt!

# Mit Hex-Farben (1.16+)
/casebc #FF5733Warnung: #00FF00Alles ok!

# Mehrere Formate
/casebc §6§l★ §eEvent startet! §6§l★
```

***

## /casemsg \<Nachricht...>

Sendet eine Nachricht an einen bestimmten Spieler.

**Permission:** `caseopening.casemsg`

### Verwendung:

```bash
/casemsg PlayerName §aWillkommen zurück!
/casemsg PlayerName §cDu hast ein Problem: ...
```

**Use Cases:**

* Private Admin-Nachrichten
* Support-Kommunikation
* Automatisierte Nachrichten

***

## /casegroupadd

Führt Case-Group-Befehle aus, wenn ein Spieler einer Gruppe beitritt.

**Permission:** `caseopening.casegroupadd`

**Hinweis:** Konfiguriert über `caseGroupRewards.yml`

### Konfiguration:

In `caseGroupRewards.yml`:

```yaml
groups:
  vip:
    commands:
      give:
        - "case add starter %player% 5"
        - "crystals add %player% 100"
        - "tell %player% §aWillkommen als VIP!"
      already-have:
        - "tell %player% §cDu bist bereits VIP!"
```

### Verwendung:

```bash
/casegroupadd PlayerName vip
```

**Was passiert:**

1. Prüft ob Spieler bereits in Gruppe ist
2. Führt `give` Commands aus wenn nicht
3. Führt `already-have` Commands aus wenn doch

***

## /casepermadd

Führt Case-Permission-Befehle aus, wenn ein Spieler eine Permission erhält.

**Permission:** `caseopening.casepermadd`

**Hinweis:** Konfiguriert über `casePermRewards.yml`

### Konfiguration:

In `casePermRewards.yml`:

```yaml
permissions:
  caseopening.reward.daily:
    commands:
      give:
        - "case add daily %player% 1"
        - "tell %player% §aDu hast deine tägliche Case erhalten!"
      already-have:
        - "tell %player% §cDu hast heute schon eine Case erhalten!"
```

### Verwendung:

```bash
/casepermadd PlayerName caseopening.reward.daily
```

***

## Tipps

{% hint style="info" %}

* Mobile Cases: Verkaufe im Shop für Geld oder gib als Belohnung
* CMD-Items: Perfekt für Custom-Rewards in Cases
* Broadcast: Nutze für wichtige Ankündigungen (Events, Updates)
* GroupAdd: Automatisiere Belohnungen mit LuckPerms-Integration
* PermAdd: Nutze für tägliche Belohnungen mit Permissions
  {% endhint %}

***

## Platzhalter

In Commands und Nachrichten:

* `%player%` - Spielername
* `%uuid%` - Spieler-UUID

***

## Beispiel-Workflows

### Tägliche Belohnung mit Permission

{% stepper %}
{% step %}

### Permission erstellen

```bash
# In LuckPerms
/lp group default permission set caseopening.daily.receive true
```

{% endstep %}

{% step %}

### Reward konfigurieren

In `casePermRewards.yml`:

```yaml
permissions:
  caseopening.daily.claimed:
    commands:
      give:
        - "case add daily %player% 1"
      already-have:
        - "tell %player% §cHeute schon erhalten!"
```

{% endstep %}

{% step %}

### Automatisieren

Mit einem Scheduler-Plugin (z.B. DeluxeCommands):

```yaml
# Jeden Tag um 00:00
schedule:
  daily:
    cron: "0 0 * * *"
    commands:
      - "lp user * permission unset caseopening.daily.claimed"
```

{% endstep %}

{% step %}

### Spieler holt Belohnung

```bash
/casepermadd %player% caseopening.daily.claimed
```

{% endstep %}
{% endstepper %}

***

### VIP-Welcome-Package

{% stepper %}
{% step %}

### Konfiguration

In `caseGroupRewards.yml`:

```yaml
groups:
  vip:
    commands:
      give:
        - "case add starter %player% 10"
        - "case add premium %player% 3"
        - "crystals add %player% 500"
        - "eco give %player% 5000"
        - "casebc §d%player% §7ist jetzt §d§lVIP§7!"
```

{% endstep %}

{% step %}

### Wenn Spieler VIP wird

```bash
/casegroupadd PlayerName vip
```

{% endstep %}
{% endstepper %}


---

# 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/caseopening/commands/givemobilecaseopening.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.
