I am making a staff list plugin which gives info about the server staffs but I can't test it because I always get this error ( can't find main file ). I also want to add a config with that you can put your staff in but I don't really know how to do it. Thank you.
Here: Code: name: PluginNameHere description: author: main: Name\Spacehere\Main load: POSTWORLD version: 1.0.0 api: [1.11.0] commands: cmd1: usage: /cmd1 description: *******
I tryed it like I did with my plugins before but I get class not loaded ? Class why does it want my class and not my pile?
For example if the plugin file structure is Code: ExamplePlugin/src/hoyinm/ExamplePlugin/MainClass.php In plugin.yml, write Code: name: ExamplePlugin main: hoyinm\ExamplePlugin\MainClass api: ["1.12.0"] version: 0.1 In your main class PHP: namespace hoyinm\ExamplePlugin;
Please note that staffs is not the plural form of staff. I had fallen into that trap in my English exam. Please don't let me see that again.
You forgot PHP: use pocketmine\command\Command;use pocketmine\command\CommandExecutor; Also, use \n to make line breaks, not make a new line.
\n = line break recognized by PocketMine for separating message packets PHP_EOL = system line separator
Look at the code for the PocketMine ExamplePlugin (Although outdated it is a good start) https://github.com/PocketMine/ExamplePlugin