So i created a plugin recently and i need some help with crashes. Whenever i start the server i get this; [19:33:26] [Server thread/CRITICAL]: ClassNotFoundException: "Class titlejoin\main not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 131 Here's my code PHP: <?phpnamespace titlejoin;use pocketmine\plugin\PluginBase;use pocketmine\event\Listener;use pocketmine\Player;use pocketmine\event\player\PlayerJoinEvent;use pocketmine\scheduler\PluginTask;use pocketmine\command\Command;use pocketmine\command\CommandSender;class titlejoin extends PluginBase implements Listener{ public $title; public function onEnable(){ $this->getServer()->getPluginManager()->registerEvents($this, $this); $this->saveDefaultConfig(); $this->title = $this->getConfig()->getNested('Title', []); } public function onDisable(){ $this->saveDefaultConfig(); } public function onCommand(CommandSender $sender,Command $cmd,$label,array $args){ switch(strtolower($command->getName())){ case "tj": $this->player->sendTitle($title, $subtitle,"60","3","20"); //fade in time (20=1 second), on screen time (seconds/ticks), fade out time break; } return true; }} Download: https://www.dropbox.com/s/6liagpuiyczhf7l/titlejoin.zip?dl=0
In your plugin.yml, change main: titlejoin\main to titlejoin\titlejoin. Pocketmine was searching for a main class that you gave the wrong path for.
Heyy, I just wanted to post that! P.S. @xXSirButterXx In the future please use code blocks for code and longer crashdumps(look here if you want to know how to use them