mirror of
https://github.com/barkeser2002/pterodactyl-addons.git
synced 2026-09-25 05:59:59 +03:00
200 lines
15 KiB
Plaintext
200 lines
15 KiB
Plaintext
Hey Bagou450 Thanks for your purchase
|
|
First upload the content of panel files folder to your pterodactyl folder
|
|
|
|
|
|
1 - In routes/admin.php at end of file add :
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Bagou License Controller Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Endpoint: /admin/bagoulicense
|
|
|
|
|
*/
|
|
Route::group(['prefix' => 'bagoucenter'], function () {
|
|
Route::get('/', [Admin\Bagou\BagouCenterController::class, 'index'])->name('admin.bagoucenter');
|
|
Route::get('/license/', [Admin\Bagou\BagouLicenseController::class, 'index'])->name('admin.bagoucenter.license');
|
|
Route::get('/license/{addon}', [Admin\Bagou\BagouLicenseController::class, 'license'])->name('admin.bagoucenter.license.addon');
|
|
|
|
Route::get('/versions/', [Admin\Bagou\BagouVersionsController::class, 'index'])->name('admin.bagoucenter.versions');
|
|
|
|
Route::get('/settings', [Admin\Bagou\BagouSettingsController::class, 'index'])->name('admin.bagoucenter.settings');
|
|
Route::get('/settings/{addon}', [Admin\Bagou\BagouSettingsController::class, 'settings'])->name('admin.bagoucenter.settings.addon');
|
|
|
|
Route::get('/support/', [Admin\Bagou\BagouCenterController::class, 'settings'])->name('admin.bagoucenter.support');
|
|
|
|
Route::post('/license/{addon}', [Admin\Bagou\BagouLicenseController::class, 'setlicense']);
|
|
|
|
Route::post('/versions', [Admin\Bagou\BagouVersionsController::class, 'refresh']);
|
|
|
|
Route::delete('/license/{addon}', [Admin\Bagou\BagouLicenseController::class, 'removelicense']);
|
|
|
|
});
|
|
|
|
|
|
2 - In routes/api-client.php above " Route::group(['prefix' => '/settings'], function () {
|
|
" Add :
|
|
|
|
Route::group(['prefix' => '/mcmodpacks'], function () {
|
|
Route::get('/', [Client\Servers\Bagou\Minecraft\ModPacksController::class, 'getModPacks']);
|
|
Route::get('/mcversions', [Client\Servers\Bagou\Minecraft\ModPacksController::class, 'getMcVersions']);
|
|
Route::get('/description', [Client\Servers\Bagou\Minecraft\ModPacksController::class, 'getModpacksDescription']);
|
|
Route::get('/getversionsize', [Client\Servers\Bagou\Minecraft\ModPacksController::class, 'getversionsize']);
|
|
Route::post('/install', [Client\Servers\Bagou\Minecraft\ModPacksController::class, 'install']);
|
|
});
|
|
|
|
3 - In app/Transformers/Api/Client/ServerTransformer.php under "'is_transferring' => !is_null($server->transfer)" add :
|
|
|
|
'mcversion' => $server->mcversion,
|
|
'nest_id' => $server->nest_id,
|
|
'egg_id' => $server->egg_id,
|
|
|
|
4 - In resources/scripts/api/server/getServer.ts under allocations: Allocation[]; add :
|
|
|
|
mcversion: string;
|
|
nestId: number;
|
|
eggId: number;
|
|
|
|
4.1 - In same file after "allocations: ((data.relationships?.allocations as FractalResponseList | undefined)?.data || []).map(rawDataToServerAllocation)," add:
|
|
|
|
mcversion: data.mcversion,
|
|
nestId: data.nest_id,
|
|
eggId: data.egg_id,
|
|
|
|
5 - In resources/views/layouts/admin.blade.php above "<li class="header">MANAGEMENT</li>" add :
|
|
|
|
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.bagoucenter') ?: 'active' }}">
|
|
<a href="{{ route('admin.bagoucenter')}}">
|
|
<i class="fa fa-globe"></i> <span>Bagou Center</span>
|
|
</a>
|
|
</li>
|
|
|
|
6 - In resources/scripts/routers/ServerRouter.ts after "import ConflictStateRenderer from '@/components/server/ConflictStateRenderer';" add :
|
|
|
|
import { Navigation, ComponentLoader } from '@/routers/ServerElements';
|
|
|
|
|
|
6.1 - In same file replace :
|
|
|
|
"
|
|
{routes.server
|
|
.filter((route) => !!route.name)
|
|
.map((route) =>
|
|
route.permission ? (
|
|
<Can key={route.path} action={route.permission} matchAny>
|
|
<NavLink to={to(route.path, true)} exact={route.exact}>
|
|
{route.name}
|
|
</NavLink>
|
|
</Can>
|
|
) : (
|
|
<NavLink key={route.path} to={to(route.path, true)} exact={route.exact}>
|
|
{route.name}
|
|
</NavLink>
|
|
)
|
|
)}
|
|
"
|
|
|
|
|
|
By:
|
|
|
|
<Navigation />
|
|
|
|
|
|
|
|
6.2 - In same file replace :
|
|
|
|
"
|
|
{routes.server.map(({ path, permission, component: Component }) => (
|
|
<PermissionRoute key={path} permission={permission} path={to(path)} exact>
|
|
<Spinner.Suspense>
|
|
<Component />
|
|
</Spinner.Suspense>
|
|
</PermissionRoute>
|
|
))}
|
|
"
|
|
|
|
By :
|
|
|
|
<ComponentLoader />
|
|
|
|
7 - In resources/scripts/routers/routes.ts after "import ServerActivityLogContainer from '@/components/server/ServerActivityLogContainer';" add :
|
|
|
|
import McModpacksContainer from '@/components/server/mcmodpacks/McModpacksContainer';
|
|
|
|
|
|
7.1 - In same file after "permission: string | string[] | null;" add :
|
|
|
|
nestId?: number;
|
|
eggId?: number;
|
|
nestIds?: number[];
|
|
eggIds?: number[];
|
|
|
|
|
|
|
|
|
|
7.2 - In same file after :
|
|
|
|
"
|
|
{
|
|
path: '/files',
|
|
permission: 'file.*',
|
|
name: 'Files',
|
|
component: FileManagerContainer,
|
|
},
|
|
"
|
|
Add:
|
|
|
|
{
|
|
path: '/minecraft/modpacks',
|
|
permission: 'file.*',
|
|
name: 'Modpacks',
|
|
nestId: 1,
|
|
component: McModpacksContainer,
|
|
},
|
|
|
|
8 - In resources/lang/en/activity.php above " 'startup' => [" add :
|
|
|
|
'versions' => [
|
|
'install' => 'Installation of :name',
|
|
],
|
|
|
|
If you have the Premium version changer addon:
|
|
|
|
9 - In resources/scripts/components/server/versions/McVersionsContainer.tsx remove:
|
|
|
|
<option key={15} value={'modpacks'}>
|
|
Modpacks
|
|
</option>
|
|
|
|
|
|
|
|
If you don't have yarn install it :
|
|
|
|
apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
|
|
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
|
|
apt -y install nodejs
|
|
cd /var/www/pterodactyl
|
|
npm i -g yarn
|
|
yarn install
|
|
|
|
Add dependencies:
|
|
|
|
yarn add html-react-parser@3.0.4 react-markdown@8.0.7
|
|
|
|
And build the panel assets :
|
|
|
|
yarn build:production
|
|
chown -R www-data:www-data * #or chown -R nginx:nginx * if you use last nginx version
|
|
php artisan optimize && php artisan migrate --force
|
|
|
|
|
|
After activate your addon trough bagou license tab in admin panel.
|
|
YOUR LICENSE : Check your BuiltByBit conversation.
|
|
|
|
For the moment the free installation service is suspended
|
|
FOR A URGENT SUPPORT PLEASE CONTACT ME DIRECTLY BY SMS OR EMAIL
|
|
If you need help contact me on discord : http://discord.bagou450.com/ (or https://discord.gg/bagou450)
|
|
You don't have discord ? Send me a SMS to +33 7 56 89 00 36 (Unsurcharged number, No call)
|
|
You prefer emails? Send a email to contact@bagou450.com
|