This commit is contained in:
Unknown 2017-11-05 21:24:58 -05:00
parent 952d8d154c
commit e3c5d50994
3 changed files with 155 additions and 1 deletions

View file

@ -44,6 +44,7 @@ class NestSeeder extends Seeder
$this->createMinecraftNest(array_get($items, 'Minecraft'));
$this->createSourceEngineNest(array_get($items, 'Source Engine'));
$this->createVoiceServersNest(array_get($items, 'Voice Servers'));
$this->createRustNest(array_get($items, 'Rust'));
}
/**
@ -81,7 +82,7 @@ class NestSeeder extends Seeder
}
/**
* Create the Source Engine Games nest to be used later on.
* Create the Voice Servers nest to be used later on.
*
* @param array|null $nest
*
@ -96,4 +97,21 @@ class NestSeeder extends Seeder
], 'support@pterodactyl.io');
}
}
/**
* Create the Rust nest to be used later on.
*
* @param array|null $nest
*
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
*/
private function createRustNest(array $nest = null)
{
if (is_null($nest)) {
$this->creationService->handle([
'name' => 'Rust',
'description' => 'Rust - A game where you must fight to survive.',
], 'support@pterodactyl.io');
}
}
}