public function __construct(PvpGame $game) { $this->game = $game; $this->game->getMain()->getServer()->getScheduler()->scheduleRepeatingTask(new CallbackPluginTask($game->getMain(), function () { foreach ($this->shops as $shop) { $shop->nextType(); } }), 80); $bowLoc = Settings::kitpvp_getBowLocation($game->getMain()->getServer()); $this->bowHash = Level::chunkhash($bowLoc->getFloorX() >> 4, $bowLoc->getFloorZ() >> 4); }