22 lines
427 B
PHP
22 lines
427 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Observers;
|
|
|
|
use Pterodactyl\Models\EggVariable;
|
|
|
|
class EggVariableObserver
|
|
{
|
|
public function creating(EggVariable $variable): void
|
|
{
|
|
if ($variable->field_type) {
|
|
unset($variable->field_type);
|
|
}
|
|
}
|
|
|
|
public function updating(EggVariable $variable): void
|
|
{
|
|
if ($variable->field_type) {
|
|
unset($variable->field_type);
|
|
}
|
|
}
|
|
}
|