menu
#4583578 Undefined variable: level

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-10-18 04:18:14 +0000 UTC

System Information

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

Error information

Warning: the SkyWarsNet plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable: level
File: plugins/SkyWars.vNet by TG.phar/src/Build/Build
Line: #345
Error level: ErrorException
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
		if(isset($this->attackby[$vitim])) {
$damager = $this->attackby[$vitim];
$online = $this->getServer()->getPlayer($damager);
$ByName = "NaN_404";
if($online) {

$online->sendTip(TE::BOLD.TE::GREEN."+5 coins");
$online->addTitle(" ",TE::BOLD.TE::GOLD."+1 Kill",20,40,20);
$ByName = $damager;
Sttings::addKill($online->getName(),$level);
Sttings::setCoins($online->getName());
}
return "§l§6PROYECTIL§f»§r§c ".$vitim."§7 fue disparado por §f".$ByName;
} else {
return "§l§6PROYECTIL§f»§r§c ".$vitim."§7 se suicido de un disparo";
}
}

public function setMDFire(string $vitim) : string {
if(isset($this->attackby[$vitim])) {
#0 plugins/SkyWars.vNet by TG.phar/src/Build/Build(345): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[25] Undefined variable: level, string[75] phar:///root/Servers/TG/plugins/SkyWars.vNet by TG.phar/src/Build/Build.php, integer 345, array[4])
#1 plugins/SkyWars.vNet by TG.phar/src/Build/events/DamageGame(181): Build\Build->setMDProjectil(string[9] TheImEpic)
#2 src/pocketmine/plugin/MethodEventExecutor(42): Build\events\DamageGame->onDamageArrow(object pocketmine\event\entity\EntityDamageByChildEntityEvent)
#3 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object Build\events\DamageGame, object pocketmine\event\entity\EntityDamageByChildEntityEvent)
#4 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageByChildEntityEvent)
#5 src/pocketmine/entity/Entity(933): pocketmine\event\Event->call()
#6 src/pocketmine/entity/Living(545): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByChildEntityEvent)
#7 src/pocketmine/Player(3873): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByChildEntityEvent)
#8 src/pocketmine/entity/projectile/Projectile(303): pocketmine\Player->attack(object pocketmine\event\entity\EntityDamageByChildEntityEvent)
#9 src/pocketmine/entity/projectile/Arrow(144): pocketmine\entity\projectile\Projectile->onHitEntity(object pocketmine\Player, object pocketmine\math\RayTraceResult)
#10 src/pocketmine/entity/projectile/Projectile(247): pocketmine\entity\projectile\Arrow->onHitEntity(object pocketmine\Player, object pocketmine\math\RayTraceResult)
#11 src/pocketmine/entity/Entity(1385): pocketmine\entity\projectile\Projectile->move(double -0.00030849477872321, double -2.1010256715961, double 0.0019621234719413)
#12 src/pocketmine/level/Level(852): pocketmine\entity\Entity->onUpdate(integer 13692)
#13 src/pocketmine/level/Level(785): pocketmine\level\Level->actuallyDoTick(integer 13692)
#14 src/pocketmine/Server(2267): pocketmine\level\Level->doTick(integer 13692)
#15 src/pocketmine/Server(2398): pocketmine\Server->checkTickUpdates(integer 13692, double 1602994694.918)
#16 src/pocketmine/Server(2154): pocketmine\Server->tick()
#17 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#18 src/pocketmine/Server(1588): pocketmine\Server->start()
#19 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[17] /root/Servers/TG/, string[25] /root/Servers/TG/plugins/)
#20 src/pocketmine/PocketMine(304): pocketmine\server()
#21 (11): require(string[72] phar:///root/Servers/TG/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies