1: <?php
2: namespace aliuly\loader;
3:
4: use pocketmine\command\CommandExecutor;
5: use pocketmine\command\CommandSender;
6: use pocketmine\command\Command;
7: use pocketmine\plugin\PluginBase;
8:
9: use aliuly\common\MPMU;
10:
11: 12: 13:
14: class Main extends PluginBase implements CommandExecutor{
15: 16: 17: 18:
19: public function api() {
20: return MPMU::version();
21: }
22: public function onEnable() {
23: $pm = $this->getServer()->getPluginManager();
24: if (($gb = $pm->getPlugin("GrabBag")) !== null) {
25: $this->getLogger()->info("Running with GrabBag...");
26: }
27: }
28:
29:
30:
31:
32:
33: public function onCommand(CommandSender $sender, Command $cmd, $label, array $args) {
34: $sender->sendMessage("libcommon v".MPMU::version());
35: return true;
36: }
37: }
38: