Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in C:\Users\lenovo\Documents\PocketMine-MP\plugins\BuildBattle-minigame-pocketmine-master\src\Dan\BB.php on line 2 the plugin namespace : namespace Dan; src -> Dan -> bb.php and resetmap.php Whats wrong ? If you want more info,Ill give it to you
<?php namespace Dan; use pocketmine\plugin\PluginBase; use pocketmine\event\Listener; use pocketmine\utils\TextFormat as TE; use pocketmine\utils\Config; use pocketmine\command\CommandSender; use pocketmine\command\Command; use pocketmine\scheduler\PluginTask; use pocketmine\event\player\PlayerInteractEvent; use pocketmine\event\player\PlayerLoginEvent; use pocketmine\event\player\PlayerQuitEvent; use pocketmine\event\player\PlayerMoveEvent; use pocketmine\level\Position; use pocketmine\Player; use pocketmine\tile\Sign; use pocketmine\level\Level; use pocketmine\event\block\BlockBreakEvent; use pocketmine\event\block\BlockPlaceEvent; use pocketmine\event\player\PlayerItemHeldEvent; use pocketmine\event\entity\EntityInventoryChangeEvent; use pocketmine\event\player\PlayerDropItemEvent; use Dan\ResetMap; use pocketmine\level\sound\PopSound; use pocketmine\level\sound\AnvilUseSound; use pocketmine\item\Item; use pocketmine\event\entity\EntityLevelChangeEvent; class BB extends PluginBase implements Listener { there you go
It appears the error is most usually caused by having a space in front of the <?php tag. Can you check that in your file? Also, you may want to see this StackOverflow question for other possible solutions.