menu
#5038358 Undefined variable: drops

Submitted by PocketMine-MP 3.22.0

General information

Version: 3.22.0
Git commit: c32c2146
Plugin involvement: Direct
Report date: 2021-07-22 02:59:21 +0000 UTC
Server uptime: 0 days 0 hours 7 minutes 1 seconds

System Information

PHP version: 7.4.20
Operating system: linux
System banner: Linux vanitymcpe 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64

Error information

Warning: the UnickornCE plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable: drops
File: plugins/Season5CE (13).phar/src/Unickorn/UnickornCE/handlers/TokeneratorHandler
Line: #74
Error level: ErrorException
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
		$player = $event->getPlayer();
$hand = $player->getInventory()->getItemInHand();
$tokenAPI = \CurrencyAPI\Main::get();
$tokenerator = $hand->getEnchantmentLevel(CustomIDs::TOKENERATOR);
$tokenluck = $hand->getEnchantmentLevel(CustomIDs::TOKENLUCK);
$token = $tokenerator * 1000;

if($hand->hasEnchantment(CustomIDs::TOKENERATOR)) {
if(!$player->hasPermission("tokenerator.disable") || ($player->isOp())) {
foreach ($drops as $data => $count) {
for($i = 0; $i < $count/2; $i++) {
if($tokenerator > 49){
if(mt_rand(1, 400) === 1){
if($tokenluck > 0){
if(mt_rand(1, 100) <= 45 + $tokenluck){
if (!isset($this->tokenluckCooldown[$player->getRawUniqueId()]) or time() > $this->tokenluckCooldown[$player->getRawUniqueId()]) {
$this->tokenluckCooldown[$player->getRawUniqueId()] = time() + 30;
$tokenAPI->addTokens($player, $token * 2);
$player->sendMessage("§l§5Vqnity§fPE §7> §r§fYou received §2" . number_format($token * 2) . " tokens §7from TokenLuck enchant.");
}
#0 plugins/Season5CE (13).phar/src/Unickorn/UnickornCE/handlers/TokeneratorHandler(74): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[25] Undefined variable: drops, string[106] phar:///home/pris/test/plugins/Season5CE (13).phar/src/Unickorn/UnickornCE/handl, integer 74, array[7])
#1 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): Unickorn\UnickornCE\handlers\TokeneratorHandler->onJackhammerEvent(object Unickorn\UnickornCE\events\JackhammerBreakEvent)
#2 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object Unickorn\UnickornCE\handlers\TokeneratorHandler, object Unickorn\UnickornCE\events\JackhammerBreakEvent)
#3 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object Unickorn\UnickornCE\events\JackhammerBreakEvent)
#4 plugins/MineReset_v3.2.2-Vqnity (1).phar/src/falkirks/minereset/Mine(197): pocketmine\event\Event->call()
#5 plugins/MineReset_v3.2.2-Vqnity (1).phar/src/falkirks/minereset/asynciterator/AsyncIteratorTask(22): falkirks\minereset\Mine->falkirks\minereset\{closure}()
#6 (): falkirks\minereset\asynciterator\AsyncIteratorTask::falkirks\minereset\asynciterator\{closure}()
#7 plugins/MineReset_v3.2.2-Vqnity (1).phar/src/falkirks/minereset/asynciterator/AsyncIteratorTask(29): Generator->send(boolean 1)
#8 pmsrc/src/pocketmine/scheduler/TaskHandler(137): falkirks\minereset\asynciterator\AsyncIteratorTask->onRun(integer 8409)
#9 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 8409)
#10 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 8409)
#11 pmsrc/src/pocketmine/Server(2389): pocketmine\plugin\PluginManager->tickSchedulers(integer 8409)
#12 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#13 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#14 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#15 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/pris/test/, string[24] /home/pris/test/plugins/)
#16 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#17 pmsrc(11): require(string[71] phar:///home/pris/test/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show