Mass server power actions per node. [Pterodactyl 1.X] | Do it on all of them in one click!

💠 Leaks 💠 Addon for Pterodactyl No updates Mass server power actions per node. [Pterodactyl 1.X] | Do it on all of them in one click! [1.0]
Short Description: Массовые действия в один клик по включению питания сервера на каждом узле.

No permission to download
    Since this resource is in the "Leaks" category, we can't guarantee to update it! But we will try to update the resource to the latest version.
    Reactions:
    • Like
    Reactions:36 users

    Описание:​

    Простой аддон, который позволит вам запустить/перезапустить/остановить или убить все серверы на определенном узле.
    Руководство по установке включено в файл.
    Этот аддон предназначен для Pterodactyl 1.X.

    Как установить:​

    Перетащите все из папки "Install" в корневую папку pterodactyl. (Например: /var/www/pterodactyl)

    Добавьте следующую строку в "/routes/admin.php" ниже линии "Route::post('/view/{node}/settings/token', 'NodeAutoDeployController')->name('admin.nodes.view.configuration.token');"
    PHP:
    Route::post('/view/{node}/power', '[email protected]')->name('admin.nodes.view.power');

    Добавьте следующую строку в "/resources/views/admin/nodes/index.php" ниже линии "<th class="text-center">Public</th>"
    PHP:
    <th class="text-center">Power Actios</th>

    Добавьте следующие строки в "/resources/views/admin/nodes/index.php" ниже линии "<td class="text-center"><i class="fa fa-{{ ($node->public) ? 'eye' : 'eye-slash' }}"></i></td>"
    PHP:
    <td class="text-center">
        <form style="display:inline-block" method="POST" action="{{ route('admin.nodes.view.power', $node) }}">
            <input type="hidden" name="action" value="start">
            <input type="hidden" name="node_id" value="{{ $node->id }}">
            {{ csrf_field() }}
            <button type="submit" class="btn btn-success btn-xs" title="Start servers">
                <i class="fa fa-play-circle" aria-hidden="true"></i>
            </button>
        </form>
        <form style="display:inline-block" method="POST" action="{{ route('admin.nodes.view.power', $node) }}">
            <input type="hidden" name="action" value="restart">
            <input type="hidden" name="node_id" value="{{ $node->id }}">
            {{ csrf_field() }}
            <button type="submit" class="btn btn-info btn-xs" title="Restart servers">
                <i class="fa fa-refresh" aria-hidden="true"></i>
            </button>   
        </form>
        <form style="display:inline-block" method="POST" action="{{ route('admin.nodes.view.power', $node) }}">
            <input type="hidden" name="action" value="stop">
            <input type="hidden" name="node_id" value="{{ $node->id }}">
            {{ csrf_field() }}
            <button type="submit" class="btn btn-warning btn-xs" title="Stop servers">
                <i class="fa fa-stop-circle" aria-hidden="true"></i>
            </button>
        </form>
        <form style="display:inline-block" method="POST" action="{{ route('admin.nodes.view.power', $node) }}">
            <input type="hidden" name="action" value="kill">
            <input type="hidden" name="node_id" value="{{ $node->id }}">
            {{ csrf_field() }}
            <button type="submit" class="btn btn-danger btn-xs" title="Kill servers">
                <i class="fa fa-times-circle" aria-hidden="true"></i>
            </button>
        </form>
    </td>

    Выполните команду, приведенную ниже, в корневом каталоге pterodactyl. (Например: /var/www/pterodactyl)
    Bash:
    php artisan optimize
    Выполнено.
    Развлекайтесь! :)
    Author
    bobobo
    First release
    Last update
    Rating
    0.00 star(s) 0 ratings

    More resources from bobobo

    Top