Chat
Chat history, sending, and chat command configuration.
ChatController
- Route prefix:
api/chat - Auth:
[Authorize].sendis blocked for viewers.
| Method | Path | Description | Request | Response |
|---|---|---|---|---|
| GET | /history | Paginated chat history with optional search and type filter | ?pageIndex&pageSize&search&chatType | PaginatedResponse<ChatRecord> |
| POST | /send | Send a chat message from the web panel into the game | { message, targetPlayer } | { output } |
chatType values: global, friends, party, whisper.
ChatCommandSettingsController
- Route prefix:
api/settings/chat-commands - Auth: admin role required.
| Method | Path | Description | Request | Response |
|---|---|---|---|---|
| GET | / | Current chat command settings | ChatCommandSettings | |
| PUT | / | Update chat command settings | { prefix, defaultCooldownSeconds, homeCooldownSeconds, teleportCooldownSeconds, maxHomesPerPlayer } | string |
Notes
- Messages sent via
POST /sendappear in-game as server messages, not as the originating admin's player. targetPlayeris optional; omit for a global broadcast, or set to a player name for a private whisper.