Bearsampp 2026.5.5
Loading...
Searching...
No Matches
class.action.enable.php
Go to the documentation of this file.
1<?php
2/*
3 * Copyright (c) 2021-2024 Bearsampp
4 * License: GNU General Public License version 3 or later; see LICENSE.txt
5 * Author: Bear
6 * Website: https://bearsampp.com
7 * Github: https://github.com/Bearsampp
8 */
9
16{
24 public function __construct($args)
25 {
26 global $bearsamppBins;
27
28 if ( isset( $args[0] ) && !empty( $args[0] ) && isset( $args[1] ) ) {
30 $bin = $bearsamppBins->getBinByName($args[0]);
31 if ($bin !== null) {
32 $bin->setEnable($args[1], true);
33 }
34 }
35 }
36}
global $bearsamppBins
static startLoading()