<?php
$str = file_get_contents ('https://minebrix.com/api.php?ip='.$config['servers'][$i]['host'].'&port='.$config['servers'][$i]['port'].'');
$playersonline = json_decode( $str );
echo "<div class='counter' data-cp-percentage='";
echo $playersonline->players->now;
echo "'data-cp-color='#00bfeb'></div>";
?>
11:39:21 [INFO ] [SRegionProtector] Started database provider YAML
11:39:21 [ERROR] Throwing
java.lang.RuntimeException: java.lang.IllegalArgumentException: Tried to get block runtime id for unsupported protocol version: 20
at cn.nukkit.plugin.PluginManager.enablePlugin(PluginManager.java:408) [Nukkit-PM1E.jar:?]
at cn.nukkit.Server.enablePlugin(Server.java:689) [Nukkit-PM1E.jar:?]
at cn.nukkit.Server.enablePlugins(Server.java:679) [Nukkit-PM1E.jar:?]
at cn.nukkit.Server.<init>(Server.java:421) [Nukkit-PM1E.jar:?]
at cn.nukkit.Nukkit.main(Nukkit.java:78) [Nukkit-PM1E.jar:?]
Caused by: java.lang.IllegalArgumentException: Tried to get block runtime id for unsupported protocol version: 20
at cn.nukkit.level.GlobalBlockPalette.getOrCreateRuntimeId(GlobalBlockPalette.java:409) ~[Nukkit-PM1E.jar:?]
at cn.nukkit.level.GlobalBlockPalette.getOrCreateRuntimeId(GlobalBlockPalette.java:510) ~[Nukkit-PM1E.jar:?]
at Sergey_Dertan.SRegionProtector.Region.Selector.RegionSelector.<init>(RegionSelector.java:33) ~[?:?]
at Sergey_Dertan.SRegionProtector.Main.SRegionProtectorMain.initRegions(SRegionProtectorMain.java:199) ~[?:?]
at Sergey_Dertan.SRegionProtector.Main.SRegionProtectorMain.onEnable(SRegionProtectorMain.java:96) ~[?:?]
at cn.nukkit.plugin.PluginBase.setEnabled(PluginBase.java:89) ~[Nukkit-PM1E.jar:?]
at cn.nukkit.plugin.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:119) ~[Nukkit-PM1E.jar:?]
at cn.nukkit.plugin.PluginManager.enablePlugin(PluginManager.java:404) ~[Nukkit-PM1E.jar:?]
... 4 more
11:39:21 [INFO ] Выключение SRegionProtector v30.0
11:39:21 [INFO ] [SRegionProtector] Start saven...
11:39:21 [ERROR] Throwing
java.lang.NullPointerException: null
at Sergey_Dertan.SRegionProtector.Main.SRegionProtectorMain.save(SRegionProtectorMain.java:239) ~[?:?]
at Sergey_Dertan.SRegionProtector.Main.SRegionProtectorMain.save(SRegionProtectorMain.java:224) ~[?:?]
at Sergey_Dertan.SRegionProtector.Main.SRegionProtectorMain.onDisable(SRegionProtectorMain.java:421) ~[?:?]
at cn.nukkit.plugin.PluginBase.setEnabled(PluginBase.java:91) ~[Nukkit-PM1E.jar:?]
at cn.nukkit.plugin.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:134) ~[Nukkit-PM1E.jar:?]
at cn.nukkit.plugin.PluginManager.disablePlugin(PluginManager.java:479) [Nukkit-PM1E.jar:?]
at cn.nukkit.plugin.PluginManager.enablePlugin(PluginManager.java:410) [Nukkit-PM1E.jar:?]
at cn.nukkit.Server.enablePlugin(Server.java:689) [Nukkit-PM1E.jar:?]
at cn.nukkit.Server.enablePlugins(Server.java:679) [Nukkit-PM1E.jar:?]
at cn.nukkit.Server.<init>(Server.java:421) [Nukkit-PM1E.jar:?]
at cn.nukkit.Nukkit.main(Nukkit.java:78) [Nukkit-PM1E.jar:?]
In Container.php line 752:
Class App\Services\Database\Transfer\Queries\Version050a\MySQLQuery does not exist
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package jakub-onderka/php-console-color is abandoned, you should avoid using it. Use php-parallel-lint/php-console-color instead.
Package jakub-onderka/php-console-highlighter is abandoned, you should avoid using it. Use php-parallel-lint/php-console-highlighter instead.
Package mtdowling/cron-expression is abandoned, you should avoid using it. Use dragonmantank/cron-expression instead.
Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
Class App\Handlers\Consoe\User\Roles\ListHandler located in ./app/Handlers/Console/User/Roles/ListHandler.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Handlers\Consoe\User\Roles\DetachHandler located in ./app/Handlers/Console/User/Roles/DetachHandler.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Handlers\Consoe\User\Roles\AttachHandler located in ./app/Handlers/Console/User/Roles/AttachHandler.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Handlers\Consoe\User\DeleteHandler located in ./app/Handlers/Console/User/DeleteHandler.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Handlers\Consoe\User\CreateHandler located in ./app/Handlers/Console/User/CreateHandler.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Services\Database\Transfer\Queries\Version050a\MySQLQuery located in ./app/Services/Database/Transfer/Queries/Version050a/MySqlQuery.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Services\Settings\Repository\Doctrine\DoctrineRepository located in ./app/Services/Settings/Repository/DoctrineRepository.php does not comply with psr-4 autoloading standard. Skipping.
Carbon 1 is deprecated, see how to migrate to Carbon 2.
ocramius/package-versions only provides support for Composer 2 in 1.8+, which requires PHP 7.4.
If you can not upgrade PHP you can require composer/package-versions-deprecated to resolve this with PHP 7.0+.
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.