Hi people I now have the problem that I have coded a plugin called JoinLeave, but it always shows the error "Main class for plugin JoinLeave not found". Can you help me further? LG GeistFan
Now it shows this Errors [15:07:56] [Server thread/CRITICAL]: ReflectionException: "Class JoinLeave\PlayerQuitEvent does not exist" (EXCEPTION) in "src/pocketmine/plugin/PluginManager" at line 706 [15:07:56] [Server thread/CRITICAL]: #0 src/pocketmine/plugin/PluginManager(706): ReflectionParameter->getClass() [15:07:56] [Server thread/CRITICAL]: #1 plugins/JoinLeave.phar/src/JoinLeave/Main(15): pocketmine\plugin\PluginManager->registerEvents(object JoinLeave\Main, object JoinLeave\Main) [15:07:56] [Server thread/CRITICAL]: #2 src/pocketmine/plugin/PluginBase(116): JoinLeave\Main->onEnable() [15:07:56] [Server thread/CRITICAL]: #3 src/pocketmine/plugin/PluginManager(552): pocketmine\plugin\PluginBase->setEnabled(boolean 1) [15:07:56] [Server thread/CRITICAL]: #4 src/pocketmine/Server(1787): pocketmine\plugin\PluginManager->enablePlugin(object JoinLeave\Main) [15:07:56] [Server thread/CRITICAL]: #5 src/pocketmine/Server(1773): pocketmine\Server->enablePlugin(object JoinLeave\Main) [15:07:56] [Server thread/CRITICAL]: #6 src/pocketmine/Server(1586): pocketmine\Server->enablePlugins(integer 1) [15:07:56] [Server thread/CRITICAL]: #7 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/minecraft/, string[24] /home/minecraft/plugins/) [15:07:56] [Server thread/CRITICAL]: #8 src/pocketmine/PocketMine(304): pocketmine\server() [15:07:56] [Server thread/CRITICAL]: #9 (11): require(string[68] phar:///home/minecraft/pocketmine.phar/src/pocketmine/PocketMine.php)
you forgot to import the PlayerQuitEvent class add this to where your use statements are: PHP: use pocketmine\event\player\PlayerQuitEvent;
http://s10.picofile.com/file/8406342776/JoinLeave.zip.html setprefix to solved, nobody can't code for you, and dont edit use statments in plugin i edited your plugin 3 times :L now its running correctly dont edit files again and dont add pocketmine folder in to plugin, if you add pocketmine folder name, plugin won't work!!!