promotional bannermobile promotional banner

Discord Chat Plugin

Server Mod : Post your inGame Chat in to Discord

File Details

PalworldDiscordPlugin-Deploy-v4.0.2.zip

  • R
  • Jun 23, 2026
  • 175.21 KB
  • 2
  • 0.7.3

File Name

PalworldDiscordPlugin-Deploy-v4.0.2.zip

Supported Versions

  • 0.7.3
# Changelog

## v4.0.2 (2026-06-23)

### Security & Licensing
- **Copyright protection** - Hardcoded XOR-encrypted API key, copyright, product name and non-commercial notice
- **Remote copyright check** - Plugin validates against `https://rl-dev.de/api/copyright-check` at startup
- **API key validation** - Plugin refuses to start if the API key in `config.json` does not match the hardcoded value
- **Generator tool removed from repo** - `tools/gen_crypto.py` (contains plaintext secrets) is no longer public

### Changes
- **HTTP server removed** - Plugin no longer starts a local web server; Discord -> game uses the file bridge only
- **Copyright string updated** - Remote check now uses `Copyright 2026 RL-Dev.de`
- **HTTP client improved** - Reads response body on non-2xx status codes to parse server error reasons
- **README updated** - Removed API key details from public documentation
- **LICENSE updated** - Reflects non-commercial license and remote copyright check
- **Deployment zip added** - `PalworldDiscordPlugin-Deploy-v4.0.1.zip` unpacks to `Pal/Binaries/Win64/`

---

## v4.0.0 (2026-06-18)

### Major Changes
- **File-based IPC bridge** - Complete rewrite of Lua <-> C++ communication
  - Removed unreliable `package.loadlib` DLL export approach
  - Lua writes events to file, C++ reads and sends to Discord
  - Much more reliable and debuggable
- **Removed ConsoleReader and LogWatcher** - Only file bridge is used now
  - Eliminates duplicate/conflicting event sources
  - Cleaner architecture

### Features
- **Discord Bot (two-way chat)** - Discord messages forwarded to in-game chat
  - Set `discord_to_game: true` + `bot_token` + `channel_id` in config
  - C++ polls Discord API, Lua broadcasts messages in-game
  - No RCON required
- **Multi-language support** - English and German
  - Set `"language": "en"` or `"de"` in `config.json`
  - All Discord embeds are translated (startup, join, leave, death)
- **Configurable bot name** - `"bot_name": "Server Chat"` in config
- **Event toggles** - Enable/disable chat, join, leave, death events individually
- **System message filter** - PalDefender/system messages are filtered out
- **Custom webhook URL** - No hardcoded URL, user must configure their own

### Changes
- Webhook URL removed from default config (must be set by user)
- `config.json.example` provided as reference
- `CONFIG.md` with full configuration documentation
- English README with installation instructions
- Startup notification and system messages cleaned up

### Removed
- ConsoleReader fallback (console buffer reading)
- LogWatcher fallback (log file monitoring)
- `package.loadlib` DLL exports (`SendChatToDiscord`, `SendEmbedToDiscord`)
- Hardcoded webhook URL from source code

---

## v3.2 (Previous)

- Added event toggles (chat, join, leave, death)
- Added config-based settings
- File bridge IPC prototype
- Debug logging enhancements
- Join hook disabled (caused disconnects)