unresolved3169 / Altay

A server software for Minecraft: Bedrock Edition in PHP (ABONDONED)
GNU Lesser General Public License v3.0
143 stars 52 forks source link

Server crashed (Class not exist because class exists) #221

Closed HowToPeaZYT closed 4 years ago

HowToPeaZYT commented 4 years ago

Error: Class 'pocketmine\entity\SpawnPlacementTypes' not found File: src/pocketmine/entity/Entity Line: 461 Type: Error

Code: [452] @phpstan-param class-string $className [453] [454] NOTE: The first save name in the $saveNames array will be used when saving the entity to disk. The reflection [455] name of the class will be appended to the end and only used if no other save names are specified. [456] */ [457] public static function registerEntity(string $className, bool $force = false, array $saveNames = []) : bool{ [458] $class = new \ReflectionClass($className); [459] if(is_a($className, Entity::class, true) and !$class->isAbstract()){ [460] if($className::NETWORK_ID !== -1){ [461] self::$knownEntities[$className::NETWORK_ID] = $className; [462] }elseif(!$force){ [463] return false; [464] } [465] [466] $shortName = $class->getShortName(); [467] if(!in_array($shortName, $saveNames, true)){ [468] $saveNames[] = $shortName; [469] } [470] [471] foreach($saveNames as $name){

Backtrace:

0 src/pocketmine/entity/Entity(382): pocketmine\entity\Entity::registerEntity(string[34] pocketmine\entity\projectile\Arrow, boolean , array[2])

1 src/pocketmine/Server(1563): pocketmine\entity\Entity::init()

2 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[39] /home/PeazyCloudServer/servers/lobby-1/, string[47] /home/PeazyCloudServer/servers/lobby-1/plugins/)

3 src/pocketmine/PocketMine(296): pocketmine\server()

HowToPeaZYT commented 4 years ago

please help

HowToPeaZYT commented 4 years ago

image

phoshp commented 4 years ago

this is an older version of altay or another fork. try latest altay please.

HowToPeaZYT commented 4 years ago

i have tried it with the latest version. lol

phoshp commented 4 years ago

is this error coming when you started server?

HowToPeaZYT commented 4 years ago

Yes, that's right.

HowToPeaZYT commented 4 years ago

It's not working..