Sooo my question is, if it is possible to get a config e.g. from a github file to a PocketMine plugin? If yes how?
If anybody reading this I used this code and it worked: PHP: $file = file_get_contents("https://link.com/file.json"); $this->ver = json_decode($file, true);
Using a cURL request would be much faster than file_get_contents across the web, but if you do use cURL, make sure to do it in an async task.
(you should't use file_get_contents on an URL while the game is running either) But if you're using it in your onEnable and it's integral for your plugin to function you don't need to make it Async unless server startup time is your highest priority.