Icons
Base: /api/icons
Manage server icon and MOTD (Message of the Day)
Handler: IconHandler
GET
/api/icons/motd
Get MOTD
Returns the current MOTD (Message of the Day).
Response Example
{"motd":"§aWillkommen auf dem Server!\n§7Viel Spaß beim Spielen!"}
cURL
curl http://localhost:5550/api/icons/motd
POST
/api/icons/motd
Set MOTD
Sets a new MOTD.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
motd
|
string | Yes | New MOTD (supports § color codes) |
Response Example
{"success":true,"message":"MOTD updated"}
cURL
curl -X POST http://localhost:5550/api/icons/motd \
-H 'Content-Type: application/json' \
-d '{"motd":"§aWillkommen!\n§7Neue MOTD!"}'