menu
#2821693 Return value of Quests\session\Session::getExperience() must be of the type int, null returned

Submitted by PocketMine-MP 3.9.3

General information

Version: 3.9.3
Git commit: 18a1bfe4
Plugin involvement: Direct
Report date: 2019-09-10 15:14:29 +0000 UTC

System Information

PHP version: 7.3.6
Operating system: linux
System banner: Linux andres-PC 4.15.0-29deepin-generic #31 SMP Fri Jul 27 07:12:08 UTC 2018 x86_64

Error information

Warning: the Quests plugin was directly involved in this crash. Please contact the plugin author.
Message: Return value of Quests\session\Session::getExperience() must be of the type int, null returned
File: plugins/Quests_v1.phar/src/Quests/session/Session
Line: #54
Error level: TypeError
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
     */
public function getLevel(): int {
return $this->level;
}

/**
* @return int
*/
public function getExperience(): int {
return $this->experience;
}

/**
* @return int
*/
public function getExperienceNecessaryForNextLevel(): int {
return pow($this->level * 10, 2);
}

/**
#0 plugins/Quests_v1.phar/src/Quests/database/SqliteDatabase(58): Quests\session\Session->getExperience()
#1 plugins/Quests_v1.phar/src/Quests/session/Session(127): Quests\database\SqliteDatabase->saveSession(object Quests\session\Session)
#2 plugins/SkyBlockUI_v1.3.phar/src/QuickLib/session/SessionManager(82): Quests\session\Session->save()
#3 plugins/SkyBlockUI_v1.3.phar/src/QuickLib/session/SessionListener(36): QuickLib\session\SessionManager->closeSession(object pocketmine\Player)
#4 src/pocketmine/plugin/MethodEventExecutor(38): QuickLib\session\SessionListener->onQuit(object pocketmine\event\player\PlayerQuitEvent)
#5 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object QuickLib\session\SessionListener, object pocketmine\event\player\PlayerQuitEvent)
#6 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerQuitEvent)
#7 src/pocketmine/Player(3498): pocketmine\event\Event->call()
#8 src/pocketmine/network/mcpe/RakLibInterface(122): pocketmine\Player->close(object pocketmine\lang\TranslationContainer, string[17] client disconnect)
#9 vendor/pocketmine/raklib/src/server/ServerHandler(131): pocketmine\network\mcpe\RakLibInterface->closeSession(string[19] 192.168.1.111 34461, string[17] client disconnect)
#10 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
#11 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
#12 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
#13 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#14 src/pocketmine/Server(2348): pocketmine\snooze\SleeperHandler->sleepUntil(double 1568128469.0131)
#15 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#16 src/pocketmine/Server(1784): pocketmine\Server->start()
#17 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[47] /home/andres/Desktop/Open Source/PocketMine-MP/, string[55] /home/andres/Desktop/Open Source/PocketMine-MP/plugins/)
#18 src/pocketmine/PocketMine(299): pocketmine\server()
#19 (1): require(string[102] phar:///home/andres/Desktop/Open Source/PocketMine-MP/PocketMine-MP.phar/src/poc)

Loaded Plugins

  • Show

Server Settings

  • Show