Closed HowToPeaZYT closed 4 years ago
please help
this is an older version of altay or another fork. try latest altay please.
i have tried it with the latest version. lol
is this error coming when you started server?
Yes, that's right.
It's not working..
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()