diff --git a/app/Models/Server.php b/app/Models/Server.php index 076c62ff7..f119eceb5 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -308,4 +308,10 @@ class Server extends Model return cache()->get("servers.$this->uuid.container.status") ?? 'missing'; } + + public function getPrimaryEndpoint() + { + dd($this->ports); + dd($this->variables); + } } diff --git a/app/Services/Servers/StartupCommandService.php b/app/Services/Servers/StartupCommandService.php index 4703eb075..3dd7cdc11 100644 --- a/app/Services/Servers/StartupCommandService.php +++ b/app/Services/Servers/StartupCommandService.php @@ -11,6 +11,9 @@ class StartupCommandService */ public function handle(Server $server, bool $hideAllValues = false): string { + $endpoint = $server->getPrimaryEndpoint(); + + $find = ['{{SERVER_MEMORY}}', '{{SERVER_IP}}', '{{SERVER_PORT}}']; $replace = [$server->memory, $server->allocation->ip, $server->allocation->port];