Okay so, I made a plugin and it somehow doesn't load it. It does not show anything in the console on startup(no error, no message from the plugin, etc.) and when doing /plugins, it's red. My plugin.yml: Code: name: TheDropper main: TheDropper\Main version: 1.0.0 api: 1.1.0 commands: td: usage: /td <addarena/regsign> <worldname> <amount/[line1]> [line2] description: Basic command permission: TheDropper.command My Main.php(only onEnable() because of others would copy it): PHP: <?phpnamespace TheDropper;use pocketmine\plugin\PluginBase;use pocketmine\event\Listener;use pocketmine\command\CommandSender;use pocketmine\command\Command;use pocketmine\event\player\PlayerInteractEvent;use pocketmine\tile\Sign;use pocketmine\level\Position;use pocketmine\utils\TextFormat;use pocketmine\Player;use pocketmine\level\Level;use pocketmine\event\player\PlayerMoveEvent;use pocketmine\block\Block;use pocketmine\event\entity\EntityDamageEvent;class Main extends PluginBase implements Listener { public $mode = 0; public $signregister = false; public $levelname = ""; public $line1 = ""; public $line2 = ""; public $spawnCount = 0; public function onEnable() { @mkdir($this->getDataFolder()); $this->saveDefaultConfig(); $this->reloadConfig(); $this->getLogger()->info("§aAktiviert"); $this->getServer()->getPluginManager()->registerEvents($this, $this); }} It should be something wrong in there, because the startup won't work, so I guess the error isn't in onCommand etc. Tho, I don't find an error.. What could be wrong? :/
Make sure you have DevTools, before you do anything. In the console, does it say somthing like "Loading TheDropper..." or "Enabling TheDropper..." when starting up?
Check if you defined the source folder and plugin.yml correctly. Especially that you have the plugin.yml file.
I checked the logs and not the console and I am getting this error: Code: RuntimeException: "yaml_parse(): end of stream reached without finding document 0" (E_WARNING) in "/src/pocketmine/utils/Config" at line 143 But the config is there..
That error means the file doesnt exist. Can you post the code of when you created the config, and how you are trying to get info from it?
The config does exist, the plugin is loaded from source and has the config inside. Also doesn't work when loading as phar and the created config. PHP: $this->getConfig();
For everyone that has the same problem, and don't know why: You cannot save an empty file. There has to be something in the file, that fixed the error for me.