# DiscordChat

This is a Spigot plugin that connects a Discord client with a Minecraft server, by showing the Discord messages sent to
a channel to the Minecraft chat, and vise versa.

## Installation

Put the plugin jar into the plugins server, and, before starting the server, create the configuration file with the
following example.

## Configuration

The configuration goes in the plugins/DiscordChat folder, named config.yml.

```yml
discord-email: 'Your Discord email'
discord-password: 'Your Discord password'
lang: en # Switch between available languages
filter-different-recipients: true # Toggles display of messages not sent to all (e.g., FactionChat)

channels:
  channel-id: # The channel ID obtainable from the URL (e.g.: https://discordapp.com/channels/{server-id}/{channel-id}
    tag: Tag # Tag to show on Minecraft chat
    discord-listen: true # Enable Discord -> Minecraft connection
    minecraft-listen: true # Enable Minecraft -> Discord connection
```

## Commands and permission nodes

* /dcreload (/dcr): Reloads the plugin configuration - discordbot.reload (default: op)
# DiscordChat

This is a Spigot plugin that connects a Discord client with a Minecraft server, by showing the Discord messages sent to
a channel to the Minecraft chat, and vise versa.

## Installation

Put the plugin jar into the plugins server, and, before starting the server, create the configuration file with the
following example.

## Configuration

The configuration goes in the plugins/DiscordChat folder, named config.yml.

```yml
discord-email: 'Your Discord email'
discord-password: 'Your Discord password'
lang: en # Switch between available languages
filter-different-recipients: true # Toggles display of messages not sent to all (e.g., FactionChat)

channels:
  channel-id: # The channel ID obtainable from the URL (e.g.: https://discordapp.com/channels/{server-id}/{channel-id}
    tag: Tag # Tag to show on Minecraft chat
    discord-listen: true # Enable Discord -> Minecraft connection
    minecraft-listen: true # Enable Minecraft -> Discord connection
```

## Commands and permission nodes

* /dcreload (/dcr): Reloads the plugin configuration - discordbot.reload (default: op)

## Languages and translations

You can switch between available languages. Actually, English (en) and Spanish.
You can use custom languages, by putting a file like "lang_{lang}.yml" in plugin folder, and set the "{lang}" in
the config. Use the file [lang.yml](src/main/resources/lang.yml) as base.
Update readme with language information
Update readme with language information
