Application API#
Use an application API key with read and write access to all resources.
| Method | Path | What it does |
|---|---|---|
GET |
/api/application/extensions/server-splitter/servers/{id}/limit |
Shows the limit, where it comes from and how many splits are used |
PUT |
/api/application/extensions/server-splitter/servers/{id}/limit |
Sets the limit. Body: {"splits": 2}, from 0 to 1000. |
DELETE |
/api/application/extensions/server-splitter/servers/{id}/limit |
Removes the limit of the server, so the egg variable applies again |
{id} is the internal ID of the server. A response looks like this:
{
"server_id": 12,
"splits": 2,
"source": "override",
"override": 2,
"variable": null,
"variable_name": "SPLITS",
"used": 1
}
source is override for a limit on the server, variable for the egg variable, or none.
Command#
Run this in the folder of your panel:
| Command | What it does |
|---|---|
php artisan server-splitter:limit <server> |
Shows the limit of a server |
php artisan server-splitter:limit <server> 3 |
Sets the limit to 3 |
php artisan server-splitter:limit <server> reset |
Removes the limit of the server, so the egg variable applies again |
<server> is the ID, UUID or short UUID of the server.
Permission#
| Group | Permission | Allows |
|---|---|---|
| Server Splitter | ext.server-splitter.manage |
Create, resize and delete split servers |
Data#
The limits are stored in server_splitter_limits and the links between primary servers and splits in server_splitter_splits.