You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[server]
java_path = "java"# java executablework_dir = "."# server dir, use \\ in windows pathsargs = ["-Xmx2G", "-jar", "server.jar", "-nogui"] # java argswhitelist_enabled = true# enable whitelistwhitelist_path = "whitelist.json"# whitelist path, relative to work dir (or absolute path)
[blankie]
bind_addr = "0.0.0.0:25565"# blankie address, this is the public address the client connects totarget_addr = "localhost:25566"# server address (port set in server.properties)log_dir = "blankie-log"# blankie log dir, relative to work dir (or absolute path)shutdown_timeout = 300# timeout in seconds before server is stoppedcheck_interval = 5# interval in seconds to query server infomotd = "Waiting for server..."# motd to show when server is downplayers = 0# player count when server is downmax_players = 1337# max player count when server is down
[[blankie.interval_commands]]
command = "say Hello World"# command to runinterval = 60# interval in seconds to run command
[[blankie.webhooks]]
webhook_url = ""# webhook urlevents = ["Transfer"] # events to trigger webhookbody = "{user} joined the server!"# webhook bodybearer_token = "your-bearer-token"# bearer token (optional)user_agent = "blankie/0.1.0"# user agent (optional)
webhooks
events
Connect: player connected to blankie
{ip}
Disconnect: disconnect from blankie, not server
{ip}
Login: player logged in
{user}
{uuid}
{ip}
WhitelistReject: player not whitelisted
{user}
{uuid}
{ip}
ServerStart: server started
{user}
{uuid}
{ip}
ServerStop: server stopped due to timeout
ServerEmpty: server empty
ServerUp: target server reachable
Transfer: player transferred to target server
{user}
{uuid}
{host}
{port}
BlankieStart: blankie started
examples
discord
user join (transfer)
body = "{ \"content\": null, \"embeds\": [{\"description\": \"{user} joined the server!\", \"color\": 5369975, \"author\": {\"name\": \"{user}\", \"icon_url\": \"https://mc-heads.net/avatar/{uuid}\"}}], \"attachments\": []}"
server start
body = "{ \"content\": null, \"embeds\": [{\"description\": \"Server started for {user}\", \"color\": 13652464, \"author\": {\"name\": \"blankie\", \"icon_url\": \"https://raw.githubusercontent.com/mxve/blankie/main/.github/blankie.png\"}}], \"attachments\": []}"