Closed deadbushmc closed 2 years ago
When i do /rewards 13:39:49] [Server thread/CRITICAL]: TypeError: "Argument 2 passed to Wertzui123\Rewards\events\RewardClaimEvent::construct() must be of the type array, null given, called in phar:///home/container/plugins/Rewards(1).phar/src/Wertzui123/Rewards/commands/reward.php on line 52" (EXCEPTION) in "plugins/Rewards(1).phar/src/Wertzui123/Rewards/events/RewardClaimEvent" at line 23 [13:39:49] [Server thread/CRITICAL]: #0 plugins/Rewards(1).phar/src/Wertzui123/Rewards/commands/reward(52): Wertzui123\Rewards\events\RewardClaimEvent->construct(object pocketmine\Player, NULL , integer 1) [13:39:49] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/command/SimpleCommandMap(248): Wertzui123\Rewards\commands\reward->execute(object pocketmine\Player, string[6] reward, array[0]) [13:39:49] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/Server(1810): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[6] reward) [13:39:49] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/Player(2322): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[6] reward) [13:39:49] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(239): pocketmine\Player->chat(string[7] /reward) [13:39:49] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket) [13:39:49] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [13:39:49] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket) [13:39:49] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [13:39:49] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/Player(3277): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [13:39:49] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [13:39:49] [Server thread/CRITICAL]: #11 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[19] 157.51.140.17 50256, object raklib\protocol\EncapsulatedPacket, integer 0) [13:39:49] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [13:39:49] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [13:39:49] [Server thread/CRITICAL]: #14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [13:39:49] [Server thread/CRITICAL]: #15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications() [13:39:49] [Server thread/CRITICAL]: #16 pmsrc/src/pocketmine/Server(2156): pocketmine\snooze\SleeperHandler->sleepUntil(double 1612964389.1819) [13:39:49] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/Server(1993): pocketmine\Server->tickProcessor() [13:39:49] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/Server(1587): pocketmine\Server->start() [13:39:49] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/PocketMine(286): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/) [13:39:49] [Server thread/CRITICAL]: #20 pmsrc/src/pocketmine/PocketMine(316): pocketmine\server() [13:39:49] [Server thread/CRITICAL]: #21 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
It looks like you put didn't register the commands to execute for a certain permission group.
When i do /rewards 13:39:49] [Server thread/CRITICAL]: TypeError: "Argument 2 passed to Wertzui123\Rewards\events\RewardClaimEvent::construct() must be of the type array, null given, called in phar:///home/container/plugins/Rewards(1).phar/src/Wertzui123/Rewards/commands/reward.php on line 52" (EXCEPTION) in "plugins/Rewards(1).phar/src/Wertzui123/Rewards/events/RewardClaimEvent" at line 23 [13:39:49] [Server thread/CRITICAL]: #0 plugins/Rewards(1).phar/src/Wertzui123/Rewards/commands/reward(52): Wertzui123\Rewards\events\RewardClaimEvent->construct(object pocketmine\Player, NULL , integer 1) [13:39:49] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/command/SimpleCommandMap(248): Wertzui123\Rewards\commands\reward->execute(object pocketmine\Player, string[6] reward, array[0]) [13:39:49] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/Server(1810): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[6] reward) [13:39:49] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/Player(2322): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[6] reward) [13:39:49] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(239): pocketmine\Player->chat(string[7] /reward) [13:39:49] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket) [13:39:49] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [13:39:49] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket) [13:39:49] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [13:39:49] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/Player(3277): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [13:39:49] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [13:39:49] [Server thread/CRITICAL]: #11 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[19] 157.51.140.17 50256, object raklib\protocol\EncapsulatedPacket, integer 0) [13:39:49] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [13:39:49] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [13:39:49] [Server thread/CRITICAL]: #14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [13:39:49] [Server thread/CRITICAL]: #15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications() [13:39:49] [Server thread/CRITICAL]: #16 pmsrc/src/pocketmine/Server(2156): pocketmine\snooze\SleeperHandler->sleepUntil(double 1612964389.1819) [13:39:49] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/Server(1993): pocketmine\Server->tickProcessor() [13:39:49] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/Server(1587): pocketmine\Server->start() [13:39:49] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/PocketMine(286): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/) [13:39:49] [Server thread/CRITICAL]: #20 pmsrc/src/pocketmine/PocketMine(316): pocketmine\server() [13:39:49] [Server thread/CRITICAL]: #21 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)