> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crafter.net.tr/llms.txt
> Use this file to discover all available pages before exploring further.

# Punishments Module

> Sync in-game bans, mutes, and warnings in real time to your website and dashboard.

The Crafter Punishments module integrates directly with industry-standard server plugins (`AdvancedBan`, `LiteBans`) via MySQL database bridge to display public ban lists and centralized moderation history.

* **Dashboard Punishments:** [Dashboard > Punishments](https://app.crafter.net.tr/tr/dashboard/punishments)
* **Public Website Page:** `yourdomain.com/punishments`

***

## Setup & Configuration

Follow these steps to link your Minecraft server’s ban plugin with Crafter:

<Steps>
  <Step title="Enable the Module">
    1. Navigate to [Dashboard > Modules > Punishments](https://app.crafter.net.tr/tr/dashboard/modules/punishments).
    2. Toggle on the module switch in the top right corner.
    3. Select your plugin from the **Plugin Type** dropdown (`AdvancedBan` or `LiteBans`).

    <Frame caption="Punishments Configuration Interface">
      <img src="https://mintcdn.com/crafter/dFrDfCh-Nb0n4ooU/images/1c18e01e-6ff1-4212-a275-8d0edfafcc4c.png?fit=max&auto=format&n=dFrDfCh-Nb0n4ooU&q=85&s=8f01c8715ccc4bba4a19e382e0c355ff" alt="Punishments Config" width="1858" height="948" data-path="images/1c18e01e-6ff1-4212-a275-8d0edfafcc4c.png" />
    </Frame>
  </Step>

  <Step title="Copy Database Credentials">
    Crafter allocates a dedicated MySQL cloud database for your server. Copy the generated credentials:

    * **Host IP**
    * **Port**
    * **Database Name** (`cw_...`)
    * **Username** (`u_...`)
    * **Password**
  </Step>

  <Step title="Update Plugin Configuration">
    Open your server's plugin configuration file (`config.yml`) and insert the database credentials:

    <Tabs>
      <Tab title="AdvancedBan">
        ```yaml config.yml theme={null}
        MySQL:
          Custom: true
          IP: "HOST_IP_FROM_PANEL"
          Port: 12783 # Port from panel
          Database: "cw_your_database"
          User: "u_your_user"
          Password: "YourPassword"
        ```
      </Tab>

      <Tab title="LiteBans">
        ```yaml config.yml theme={null}
        driver: "MySQL"
        address: "HOST_IP_FROM_PANEL:PORT"
        database: "cw_your_database"
        username: "u_your_user"
        password: "YourPassword"
        ```
      </Tab>
    </Tabs>
  </Step>

  <Step title="Save and Reload Plugin">
    Save the configuration and reload the plugin on your Minecraft server (`/litebans reload` or `/advancedban reload`).
  </Step>
</Steps>

***

## Database Management (phpMyAdmin)

You can manage tables, import historical records, or run custom SQL queries using our integrated phpMyAdmin instance:

<Card title="Crafter phpMyAdmin Access" icon="database" href="https://pma.crafter.net.tr">
  Visit `pma.crafter.net.tr` and sign in using the MySQL credentials provided in your Punishments module page.
</Card>

***

## Viewing Punishments

<Frame caption="Dashboard Punishments Management Screen">
  <img src="https://mintcdn.com/crafter/dFrDfCh-Nb0n4ooU/images/Ekran-g%C3%B6r%C3%BCnt%C3%BCs%C3%BC-2026-08-19-230223.png?fit=max&auto=format&n=dFrDfCh-Nb0n4ooU&q=85&s=08f3b73f3ae217b33ffc5671089b7193" alt="Punishments Screen" width="1853" height="948" data-path="images/Ekran-görüntüsü-2026-08-19-230223.png" />
</Frame>

* **Dashboard:** Filter active and expired penalties, review issuing staff members, reasons, and expiry times.
* **Public Web Page:** Players can visit `yourdomain.com/punishments` to inspect moderation transparency in real time.
