123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
Main::setInstance($this);
$this->initCommands();
$resources = ["ATM.json", "LogsGm1.json", "Reports.json", "Gloire.json","Kill.json",
"Killstreak.json", "Death.json", "Kb.yml", "Cosmetics.json", "Bourse.json", "Mute.json", "BanIP.json", "Ban.json"];
$commands = [new NightVision(), new AtmCommand(),
new Id(), new MineTp(), new Repair(), new RepairAll(), new TpAll(),
new Gm0(), new Gm1(), new Gm3(),
new KbCommand(), new FactionS(), new Setkillstreak(), new Setkill(), new Setdeath(), new Kothtp(),
new Stats(), new EventsCommand(), new Leaderboard(),new Vanish($this), new Scoreboard(), new Refill(), new Ban($this), new Mute($this), new Mutelist($this), new Kick($this), new Unban($this), new Banlist($this),
new Unmute($this), new Spawncmd($this)];
$events = [new PlayerEvents(), new EntityEvents(), new DataPackets(), new PlayerChat($this), new PlayerJoin($this), new NoHunger($this), new AntiPearl()];
$this->getScheduler()->scheduleRepeatingTask(new BroadcastTask(), 6000);
$this->getScheduler()->scheduleRepeatingTask(new ShuffleWord(), 20 * 300);
$this->getScheduler()->scheduleRepeatingTask(new ClearLagTask(), 20);
$this->getScheduler()->scheduleRepeatingTask(new AntiAfkTask(), 20);
$this->saveDefaultConfig();
#0 pmsrc/src/plugin/PluginBase(119): Doki\Main->onEnable()
#1 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#2 pmsrc/src/Server(1389): pocketmine\plugin\PluginManager->enablePlugin(object Doki\Main#48672)
#3 pmsrc/src/Server(1033): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#41617)
#4 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#5 pmsrc/src/PocketMine(357): pocketmine\server()
#6 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)