vecnavium-pm-pl / Slapper

The new home of Slapper, the NPC plugin for PocketMine.
https://poggit.pmmp.io/p/Slapper
GNU Lesser General Public License v3.0
14 stars 32 forks source link

server Closed Errer #72

Open cherrychip8293 opened 1 year ago

cherrychip8293 commented 1 year ago

Error: "Call to undefined method slapper\entities\SlapperGhast::setImmobile()" (EXCEPTION) in "plugins/Slapper_v3.0.0.phar/src/slapper/entities/SlapperEntity" at line 57 --- Stack trace ---

0 pmsrc/src/entity/Entity(217): slapper\entities\SlapperEntity->initEntity(object pocketmine\nbt\tag\CompoundTag#167435)

1 plugins/Slapper_v3.0.0.phar/src/slapper/entities/SlapperEntity(44): pocketmine\entity\Entity->__construct(object pocketmine\entity\Location#166590, object pocketmine\nbt\tag\CompoundTag#167435)

2 plugins/Slapper_v3.0.0.phar/src/slapper/Main(193): slapper\entities\SlapperEntity->__construct(object pocketmine\entity\Location#166590, object pocketmine\nbt\tag\CompoundTag#167435)

3 pmsrc/src/entity/EntityFactory(232): slapper\Main::slapper{closure}(object pocketmine\world\World#59842, object pocketmine\nbt\tag\CompoundTag#167435)

4 pmsrc/src/world/World(2757): pocketmine\entity\EntityFactory->createFromData(object pocketmine\world\World#59842, object pocketmine\nbt\tag\CompoundTag#167435)

5 pmsrc/src/world/World(2731): pocketmine\world\World->initChunk(int 0, int 0, object pocketmine\world\format\io\ChunkData#167428)

6 pmsrc/src/world/World(2343): pocketmine\world\World->loadChunk(int 0, int 0)

7 pmsrc/src/world/World(2954): pocketmine\world\World->getOrLoadChunkAtPosition(object pocketmine\math\Vector3#167401)

8 pmsrc/src/world/WorldManager(145): pocketmine\world\World->getSafeSpawn()

9 pmsrc/src/Server(1466): pocketmine\world\WorldManager->unloadWorld(object pocketmine\world\World#55769, true)

10 pmsrc/src/Server(1064): pocketmine\Server->forceShutdown()

11 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#3, object pocketmine\utils\MainLogger#6, string[9] /root/pm/, string[17] /root/pm/plugins/)

12 pmsrc/src/PocketMine(357): pocketmine\server()

13 pmsrc(11): require(string[53] phar:///root/pm/PocketMine-MP.phar/src/PocketMine.php)

--- End of exception information ---

This error occurs when shutting down the server

API : 5.1.1 PHP : 8.2 Server OS : linux

shreyop200 commented 1 year ago

this plugin is not yet updated to API 5, I just suggest not to use for now.

note3crafter commented 1 year ago

i have it fixed and slapper works now...