peliprint/app/Services/Helpers/BlueprintExtensionLibrary.php

29 lines
686 B
PHP
Raw Normal View History

<?php
/*
| Welcome to the Blueprint Extension Library.
|
| This allows developers to interact with
| Pterodactyl easely and without hassle.
*/
namespace Pterodactyl\Services\Helpers;
class BlueprintExtensionLibrary
{
// Construct BlueprintExtensionLibrary
public function __construct(
private SettingsRepositoryInterface $settings,
) {
}
public function db($type, $table, $key, $value) {
if ($type === "get") {
return $this->settings->get($table."::".$key);
};
if ($type === "set") {
return $this->settings->set($table."::".$key, $value);
};
return true;
}
2023-03-26 12:18:54 -04:00
}