Skip to content

Privacy Policy ​

Plugin ID: gg.empostor.privacyConfig file: None — content is stored as HTML, see Storage

ReferenceWhere
ConfigurationNone
CommandsNone
Admin PanelPrivacy tab
HTTP APIEndpoints

Serves a privacy policy page at /privacy and exposes an endpoint to replace its content.

API ​

GET /privacy ​

Serves the policy page. Returns the built-in default template until custom content is set.

POST /admin/api/privacy ​

Replaces the policy content. Requires authentication.

json
{
  "content": "<h1>My Privacy Policy</h1><p>...</p>",
  "token": "your-admin-token"
}
Body fieldTypeDescription
contentstringRaw HTML for the privacy page
tokenstringAdmin token

Token resolution order

  1. EMP_HTTP_TOKEN environment variable
  2. EMP_ADMIN_TOKEN environment variable
  3. Falls back to "empostor" if neither is set

Change the default token

The fallback token is "empostor". Set EMP_HTTP_TOKEN to a strong value before exposing this endpoint.

Responses

StatusBodyMeaning
200{ "success": true }Content updated
401{ "error": "Invalid token." }Token missing or incorrect
400{ "error": "..." }Malformed request body

Admin Panel ​

Privacy tab — multiline HTML editor for the policy content.

Storage ​

Content is written to Pages/privacy.html in the server working directory and persists across restarts. Served as Content-Type: text/html; charset=utf-8; any valid HTML is accepted.

bash
curl -X POST http://localhost:22023/admin/api/privacy \
  -H "Content-Type: application/json" \
  -d '{"content": "<h1>Privacy Policy</h1><p>We respect your privacy.</p>", "token": "empostor"}'

Default Template ​

Used when Pages/privacy.html does not exist. Covers:

SectionContent
Data CollectionFriend codes, chat messages, IP addresses, game data
Data UsageService provision, administration, debugging
Data SharingNot shared with third parties
Data RetentionLogs retained for 31 days
Contact InformationServer administrator
Third-Party ServicesPlugin disclosures