Files

25 lines
859 B
PHP
Raw Permalink Normal View History

2026-10-05 18:10:18 -04:00
<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Servers;
use Pterodactyl\Models\Server;
use Pterodactyl\Models\User;
use Throwable;
interface UpdatesServerStartup
{
/**
2026-10-11 23:50:53 -04:00
* Only the fields given are validated here and changed. The environment is checked against
* the egg's variable rules, and below the admin level only the variables a user may edit are
* written. Only an administrator changes the startup command, egg, Docker image and install
* script flag; at the admin level an install script flag left out turns it off.
2026-10-11 09:09:51 -04:00
*
2026-10-11 19:54:55 -04:00
* @param array<string, mixed> $input any of environment and, at the admin level, startup, egg_id, docker_image and skip_scripts
2026-10-05 18:10:18 -04:00
*
* @throws Throwable
*/
2026-10-11 09:09:51 -04:00
public function update(Server $server, array $input, int $userLevel = User::USER_LEVEL_USER): Server;
2026-10-05 18:10:18 -04:00
}