FoxWorn3365 / Shopkeepers

Add Shopkeepers to your PocketMine-MP world! Allow the creation of simple barter stores between players or create adminshops!
https://poggit.pmmp.io/p/Shopkeepers/
GNU General Public License v3.0
12 stars 5 forks source link

ErrorException: "Creation of dynamic property" #25

Closed NhanAZ closed 1 year ago

NhanAZ commented 1 year ago
[17:10:54.436] [Server thread/CRITICAL]: ErrorException: "Creation of dynamic property FoxWorn3365\Shopkeepers\Core::$server is deprecated" (EXCEPTION) in "plugins/Shopkeepers/src/FoxWorn3365/Shopkeepers/Core" at line 116
--- Stack trace ---
  #0 plugins/Shopkeepers/src/FoxWorn3365/Shopkeepers/Core(116): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 8192, string[80] Creation of dynamic property FoxWorn3365\Shopkeepers\Core::$server is deprecated, string[103] C:\Users\NhanAZ\Documents\Github\PocketMine-MP\plugins\Shopkeepers\src\FoxWorn33, int 116)
  #1 pmsrc/src/plugin/PluginBase(118): FoxWorn3365\Shopkeepers\Core->onEnable()
  #2 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
  #3 pmsrc/src/Server(1389): pocketmine\plugin\PluginManager->enablePlugin(object FoxWorn3365\Shopkeepers\Core#41640)
  #4 pmsrc/src/Server(1033): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#41537)
  #5 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[47] C:\Users\NhanAZ\Documents\Github\PocketMine-MP\, string[55] C:\Users\NhanAZ\Documents\Github\PocketMine-MP\plugins\)
  #6 pmsrc/src/PocketMine(357): pocketmine\server()
--- End of exception information ---
[17:10:54.438] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[17:10:54.448] [Server thread/EMERGENCY]: Please upload the "C:/Users/NhanAZ/Documents/Github/PocketMine-MP/crashdumps/Mon_Jul_31-17.10.54-UTC_2023.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
[17:10:54.449] [Server thread/EMERGENCY]: Forcing server shutdown
FoxWorn3365 commented 1 year ago

GitHub did not send me any notification for this issue 😢, sorry for the delay. I should have fixed this in v1.2