Error: "Using $this when not in object context" (EXCEPTION) in "plugins/test/src/YTBJero/EnchantShopUI/libs/YTBJero/LibEconomy/Economy" at line 34
--- Stack trace ---
--- End of exception information ---
[18:58:00.227] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[18:58:00.237] [Server thread/EMERGENCY]: Please upload the "E:/server - Copie/crashdumps/Sun_Aug_7-18.58.00-BST_2022.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
[18:58:00.238] [Server thread/EMERGENCY]: Forcing server shutdown
Bug
-
Steps to reproduce the issue
OS and versions
Crashdump, backtrace or other files
Error: "Using $this when not in object context" (EXCEPTION) in "plugins/test/src/YTBJero/EnchantShopUI/libs/YTBJero/LibEconomy/Economy" at line 34 --- Stack trace ---
0 plugins/test/src/YTBJero/EnchantShopUI/Main(105): YTBJero\EnchantShopUI\libs\YTBJero\LibEconomy\Economy::myMoney(object pocketmine\player\Player#30169)
1 plugins/test/src/YTBJero/EnchantShopUI/libs/jojoe77777/FormAPI/Form(46): YTBJero\EnchantShopUI\Main->YTBJero\EnchantShopUI{closure}(object pocketmine\player\Player#30169, array[2])
2 pmsrc/src/player/Player(2011): YTBJero\EnchantShopUI\libs\jojoe77777\FormAPI\Form->handleResponse(object pocketmine\player\Player#30169, array[2])
3 pmsrc/src/network/mcpe/handler/InGamePacketHandler(893): pocketmine\player\Player->onFormSubmit(int 1, array[2])
4 pmsrc/vendor/pocketmine/bedrock-protocol/src/ModalFormResponsePacket(46): pocketmine\network\mcpe\handler\InGamePacketHandler->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#121242)
5 pmsrc/src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#120247)
6 pmsrc/src/network/mcpe/NetworkSession(357): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#121242, string[12] e..[null,1].)
7 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[15] .Ie...+...1....)
8 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[24] ....j9......../KU...[...)
9 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#28555)
10 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib{closure}()
11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
12 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1659895080.2224)
13 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
14 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[18] E:\server - Copie\, string[26] E:\server - Copie\plugins)
15 pmsrc/src/PocketMine(327): pocketmine\server()
16 pmsrc(11): require(string[62] phar://E:/server - Copie/PocketMine-MP.phar/src/PocketMine.php)
--- End of exception information --- [18:58:00.227] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump [18:58:00.237] [Server thread/EMERGENCY]: Please upload the "E:/server - Copie/crashdumps/Sun_Aug_7-18.58.00-BST_2022.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can. [18:58:00.238] [Server thread/EMERGENCY]: Forcing server shutdown