Code: [17:56:48] [Server thread/CRITICAL]: Unhandled exception executing command 'match' in match: Call to undefined method pocketmine\Server::getScheduler() [17:56:48] [Server thread/CRITICAL]: Error: "Call to undefined method pocketmine\Server::getScheduler()" (EXCEPTION) in "1vs1-master/src/Minifixio/onevsone/model/Arena" at line 74 [17:56:48] [Server thread/DEBUG]: #0 1vs1-master/src/Minifixio/onevsone/ArenaManager(185): Minifixio\onevsone\model\Arena->startRound(array Array()) [17:56:48] [Server thread/DEBUG]: #1 1vs1-master/src/Minifixio/onevsone/ArenaManager(150): Minifixio\onevsone\ArenaManager->launchNewRounds() [17:56:48] [Server thread/DEBUG]: #2 1vs1-master/src/Minifixio/onevsone/command/JoinCommand(44): Minifixio\onevsone\ArenaManager->addNewPlayerToQueue(pocketmine\Player object) [17:56:48] [Server thread/DEBUG]: #3 src/pocketmine/command/SimpleCommandMap(258): Minifixio\onevsone\command\JoinCommand->execute(pocketmine\Player object, string match, array Array()) [17:56:48] [Server thread/DEBUG]: #4 src/pocketmine/Server(1955): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string match) [17:56:48] [Server thread/DEBUG]: #5 Slapper-master/src/slapper/Main(168): pocketmine\Server->dispatchCommand(pocketmine\Player object, string match) [17:56:48] [Server thread/DEBUG]: #6 src/pocketmine/command/PluginCommand(58): slapper\Main->onCommand(pocketmine\command\ConsoleCommandSender object, pocketmine\command\PluginCommand object, string rca, array Array()) [17:56:48] [Server thread/DEBUG]: #7 src/pocketmine/command/SimpleCommandMap(258): pocketmine\command\PluginCommand->execute(pocketmine\command\ConsoleCommandSender object, string rca, array Array()) [17:56:48] [Server thread/DEBUG]: #8 src/pocketmine/Server(1955): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\command\ConsoleCommandSender object, string rca "MSG100NG" match) [17:56:48] [Server thread/DEBUG]: #9 Slapper-master/src/slapper/Main(645): pocketmine\Server->dispatchCommand(pocketmine\command\ConsoleCommandSender object, string rca "MSG100NG" match) [17:56:48] [Server thread/DEBUG]: #10 src/pocketmine/plugin/MethodEventExecutor(38): slapper\Main->onEntityDamage(slapper\events\SlapperHitEvent object) [17:56:48] [Server thread/DEBUG]: #11 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(slapper\Main object, pocketmine\event\entity\EntityDamageByEntityEvent object) [17:56:48] [Server thread/DEBUG]: #12 src/pocketmine/plugin/PluginManager(752): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntityDamageByEntityEvent object) [17:56:48] [Server thread/DEBUG]: #13 src/pocketmine/entity/Entity(891): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\entity\EntityDamageByEntityEvent object) [17:56:48] [Server thread/DEBUG]: #14 src/pocketmine/entity/Living(532): pocketmine\entity\Entity->attack(pocketmine\event\entity\EntityDamageByEntityEvent object) [17:56:48] [Server thread/DEBUG]: #15 src/pocketmine/Player(2513): pocketmine\entity\Living->attack(pocketmine\event\entity\EntityDamageByEntityEvent object) [17:56:48] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object) [17:56:48] [Server thread/DEBUG]: #17 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(155): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object) [17:56:48] [Server thread/DEBUG]: #18 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) [17:56:48] [Server thread/DEBUG]: #19 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object) [17:56:48] [Server thread/DEBUG]: #20 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) [17:56:48] [Server thread/DEBUG]: #21 src/pocketmine/Player(3036): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) [17:56:48] [Server thread/DEBUG]: #22 src/pocketmine/network/mcpe/RakLibInterface(158): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) [17:56:48] [Server thread/DEBUG]: #23 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 192.168.15.24 40199, raklib\protocol\EncapsulatedPacket object, integer 0) [17:56:48] [Server thread/DEBUG]: #24 src/pocketmine/network/mcpe/RakLibInterface(103): raklib\server\ServerHandler->handlePacket() [17:56:48] [Server thread/DEBUG]: #25 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process() [17:56:48] [Server thread/DEBUG]: #26 src/pocketmine/network/mcpe/RakLibInterface(80): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object) [17:56:48] [Server thread/DEBUG]: #27 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}() [17:56:48] [Server thread/DEBUG]: #28 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications() [17:56:48] [Server thread/DEBUG]: #29 src/pocketmine/Server(2258): pocketmine\snooze\SleeperHandler->sleepUntil(double 1531303008.4677) [17:56:48] [Server thread/DEBUG]: #30 src/pocketmine/Server(2129): pocketmine\Server->tickProcessor() [17:56:48] [Server thread/DEBUG]: #31 src/pocketmine/Server(1710): pocketmine\Server->start() [17:56:48] [Server thread/DEBUG]: #32 src/pocketmine/PocketMine(237): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\\Desktop\PocketMine-MP\, string C:\Users\\Desktop\PocketMine-MP\plugins\) [17:56:48] [Server thread/DEBUG]: #33 C:/Users//Desktop/PocketMine-MP/PocketMine-MP.phar(1): require(string phar://C:/Users//Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
Oh, I missed that, my bad. You have to use Plugin->getScheduler(), so you'll probably have to do OneVsOne::getInstance() instead of Server::getInstance(). You'll need to do that for all tasks, and instead of Server::getScheduler->scheduleTask, you'll need to use the Plugin Scheduler to do it. Check out the documented API changes. Look under API->Plugin changes for more details. I had started a project to replace that 1vs1 plugin, because it lacks in a lot of areas. Sadly, I got tired and moved on to other projects. I'll try to finish it some day, because I think a lot of people would use it.