942285cab3
I also added a "legacy" extensionlibrary for backwards compatability for now.
31 lines
589 B
PHP
31 lines
589 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\BlueprintFramework\Services\PlaceholderService;
|
|
use Pterodactyl\Contracts\Repository\SettingsRepositoryInterface;
|
|
|
|
class BlueprintPlaceholderService
|
|
{
|
|
// Construct core
|
|
public function __construct(
|
|
private SettingsRepositoryInterface $settings,
|
|
) {
|
|
}
|
|
|
|
// version()
|
|
public function version(): string {
|
|
$v = "&bp.version&";
|
|
return $v;
|
|
}
|
|
|
|
// folder()
|
|
public function folder(): string {
|
|
$v = "&bp.folder&";
|
|
return $v;
|
|
}
|
|
|
|
// installed()
|
|
public function installed(): string {
|
|
$v = "NOTINSTALLED";
|
|
return $v;
|
|
}
|
|
}
|