Greetings, I am trying to create a plugin (private), but keep getting this error on pmt.mcpe.me Code: Classpath•Inspection result: Error •Errors◦Main class file expected at src/Help/Main.php but it is not a file my classpath PHP: namespace Help;use pocketmine\command\Command;use pocketmine\event\Listener;use pocketmine\utils\TextFormat;use pocketmine\plugin\PluginBase;use pocketmine\command\CommandSender;use pocketmine\event\player\PlayerCommandPreproccessEvent;class Main extends PluginBase implements Listener { My plugin.yml PHP: name: Helpmain: Help\Mainversion: 1.0.0api: [1.2.0]author: Zombiedescription: helps the playercommands: ilife: description: alternative to /help usage: /ilife Any assistance appreciated
Um... I think you forgot to put <?php opening tag in the main.php code... Also, why is there a space in the plugin.yml file in the "name" row?
Do you have a file called src/Help/Main.php? According to your plugin.yml, it should be the main class.
yes my netbeans IDE automatically makes them- src(folder:it has the plugin.yml)-> Help(folder: which has the Main.php)