Minecon724
ec59b3d293
All checks were successful
/ build (push) Successful in 1m6s
since it's getting crowded
32 lines
No EOL
1.2 KiB
Markdown
32 lines
No EOL
1.2 KiB
Markdown
Killswitch immediately stops the server.
|
|
|
|
### Warning
|
|
This terminates the server process, meaning it's like you'd pull the power. \
|
|
So you will lose some progress (since the last auto save), or worst case your world (or other data) gets corrupted.
|
|
|
|
Terminal froze after kill? `reset`
|
|
|
|
### Over a command
|
|
No key is required. \
|
|
`/servkill` is the command. Permission: `tweaks724.servkill`. \
|
|
You must grant the permission manually, like with a permission plugin - it's not automatically assigned even to OPs.
|
|
|
|
### Over HTTP
|
|
HTTP is insecure, meaning others *could* intercept your request to the server and get your key. \
|
|
To encrypt, put this behind a proxy to get HTTPS or a VPN (directly to the server, not a commercial VPN) \
|
|
Or regenerate the key after every usage.
|
|
|
|
Make a GET request to `/key/<base64 encoded key>`
|
|
|
|
Example:
|
|
```
|
|
https://127.0.0.1:57932/key/lNwANMSZhLiTWhNxSoqQ5Q==
|
|
|_ server address _| |_ base64 encoded key _|
|
|
```
|
|
|
|
The response is a 404 no matter what. Either way, you will notice that the server has stopped.
|
|
|
|
The key is generated to `plugins/Tweaks724/storage/killswitch key` \
|
|
To use it with HTTP server, encode it to base64.
|
|
|
|
Rate limit is 1 request / 5 minutes |