Ifera / ScoreHudX

A repository containing plugins implementing tags for ScoreHud. For ScoreHud version 6.0 and above ONLY.
GNU General Public License v3.0
14 stars 26 forks source link

The plugin gives me an error when starting the server #7

Closed JohanBrionis closed 3 years ago

JohanBrionis commented 3 years ago
`public static function isTimezoneChanged(): bool{
    return self::$config->getNested("time.zone") !== false;
}

public static function getTimezone(): string{
    return (string) self::$config->getNested("time.zone", "America/New_York");
}

public static function getTimeFormat(): string{
    return (string) self::$config->getNested("time.format.time", "H:i:s");
}

public static function getDateFormat(): string{
    return (string) self::$config->getNested("time.format.date", "d-m-Y");
}

/*
 * Settings from scorehud.yml
 */`

`

0 plugins/BasicScore.phar/src/Ifera/BasicScore/Main(36): Ifera\ScoreHud\ScoreHudSettings::getTimeFormat()

1 pmsrc/src/pocketmine/scheduler/ClosureTask(61): Ifera\BasicScore\Main->Ifera\BasicScore{closure}(integer 1)

2 pmsrc/src/pocketmine/scheduler/TaskHandler(137): pocketmine\scheduler\ClosureTask->onRun(integer 1)

3 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 1)

4 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1)

5 pmsrc/src/pocketmine/Server(2389): pocketmine\plugin\PluginManager->tickSchedulers(integer 1)

6 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()

7 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()

8 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()

9 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[20] /server/server-data/, string[28] /server/server-data/plugins/)

10 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()

11 pmsrc(11): require(string[64] phar:///server/jars/pmmp-1834.phar/src/pocketmine/PocketMine.php)`

Ifera commented 3 years ago

And you missed the actual line containing the error message. Please paste that complete line in the comments of this issue. Closing this until you paste the complete error message.

JohanBrionis commented 3 years ago

https://crash.pmmp.io/view/4905447

Ifera commented 3 years ago

Hmm.. How does this happen? I see ScoreHud being disabled here. How exactly did this happen? Any steps to reproduce this would be helpful.

JohanBrionis commented 3 years ago

I simply added the apis, configure the scores and when I went to start the server it crashed, then I deleted the ScoreHub folder from plugin-data so that it would restart and the error continued

If what I wrote is not well understood, it is because I am using google translator

Ifera commented 3 years ago

Try using Dev-8 of BasicScore here. Do let me know if this fixes the issue.

Ifera commented 3 years ago

Also make sure that you are using the up to date version of ScoreHud i.e. v6.2.0. One more thing, delete the previous ScoreHud folder from plugin_data while the server is off and then start and stop the server to edit the files. Don't edit or delete files when the server is running.

JohanBrionis commented 3 years ago

https://prnt.sc/123u3t5

Ifera commented 3 years ago

Copy paste the entire error, not just some lines. I want the entire error! Please paste it in the reply to this issue.

JohanBrionis commented 3 years ago

that's the only thing that comes out of error

Ifera commented 3 years ago

Umm noo.. scroll up a bit or look at your server.log file. You'll find a complete error log in there.

JohanBrionis commented 3 years ago

2021-04-26 [20:55:54] [Server thread/INFO]: Loading pocketmine.yml... 2021-04-26 [20:55:54] [Server thread/INFO]: Loading server properties... 2021-04-26 [20:55:55] [Server thread/INFO]: Selected English (eng) as the base language 2021-04-26 [20:55:55] [Server thread/INFO]: Starting Minecraft: Bedrock Edition server version v1.16.220 2021-04-26 [20:55:55] [Server thread/INFO]: Online mode is enabled. The server will verify that players are authenticated to Xbox Live. 2021-04-26 [20:55:55] [Server thread/INFO]: Opening server on 0.0.0.0:26542 2021-04-26 [20:55:55] [Server thread/INFO]: This server is running PocketMine-MP version 3.19.0 2021-04-26 [20:55:55] [Server thread/INFO]: PocketMine-MP is distributed under the LGPL License 2021-04-26 [20:55:57] [Server thread/INFO]: Loading resource packs... 2021-04-26 [20:55:58] [Server thread/INFO]: Loading PlayerSelectors v1.0.8 2021-04-26 [20:55:58] [Server thread/INFO]: Loading Slapper v1.6.1 2021-04-26 [20:55:58] [Server thread/INFO]: Loading CombatLogger v0.0.6 2021-04-26 [20:55:58] [Server thread/INFO]: Loading EasyModeration v1.0.0 2021-04-26 [20:55:58] [Server thread/INFO]: Loading Worlds v3.0.7 2021-04-26 [20:55:58] [Server thread/INFO]: Loading DynamicFT v1.0.2 2021-04-26 [20:55:58] [Server thread/INFO]: Loading BugReport v1.0.0 2021-04-26 [20:55:58] [Server thread/INFO]: Loading MapImageEngine v1.1.3 2021-04-26 [20:55:58] [Server thread/INFO]: Loading RenameItems v2.0 2021-04-26 [20:55:58] [Server thread/INFO]: Loading theSpawn v1.2.4 2021-04-26 [20:55:58] [Server thread/INFO]: Loading WorldGuard v1.1.93 2021-04-26 [20:55:58] [Server thread/INFO]: Loading MineReset v3.2.0 2021-04-26 [20:55:58] [Server thread/INFO]: Loading MultiWorld v1.5.2 2021-04-26 [20:55:58] [Server thread/INFO]: Loading PiggyCrates v2.0.9 2021-04-26 [20:55:58] [Server thread/INFO]: Loading TimeCommander v1.0.2 2021-04-26 [20:55:58] [Server thread/INFO]: Loading Broadcaster v1.5 2021-04-26 [20:55:58] [Server thread/INFO]: Loading ScoreHud v6.1.0 2021-04-26 [20:55:58] [Server thread/INFO]: Loading WarpsPro v1.3.0 2021-04-26 [20:55:58] [Server thread/INFO]: Loading FormAPI v1.3.0 2021-04-26 [20:55:58] [Server thread/INFO]: Loading CustomAlerts v2.1 2021-04-26 [20:55:58] [Server thread/INFO]: Loading XMines v1.0.0 2021-04-26 [20:55:58] [Server thread/INFO]: Loading BasicScore v1.2.0 2021-04-26 [20:55:58] [Server thread/INFO]: Loading InvCrashFix v0.0.1 2021-04-26 [20:55:58] [Server thread/INFO]: Loading MaxEnchants v1.2.1 2021-04-26 [20:55:58] [Server thread/INFO]: Loading SlapperUI v0.0.1 2021-04-26 [20:55:58] [Server thread/INFO]: Loading AntiVoid v1.1.0 2021-04-26 [20:55:58] [Server thread/INFO]: Loading AutoClearLagg v3.1.0 2021-04-26 [20:55:58] [Server thread/INFO]: Loading BlockItemFrame-HiroTeam v2.0.2 2021-04-26 [20:55:58] [Server thread/INFO]: Loading AutoMineReset v0.3.5 2021-04-26 [20:55:58] [Server thread/NOTICE]: [AutoMineReset] Loading... 2021-04-26 [20:55:58] [Server thread/INFO]: Loading EconomyAPI v5.7.2 2021-04-26 [20:55:58] [Server thread/INFO]: Loading EasyEdit v1.0.0 2021-04-26 [20:55:58] [Server thread/INFO]: Loading PurePerms v1.4.3 2021-04-26 [20:55:58] [Server thread/INFO]: [PurePerms] Setting default language to 'sp' 2021-04-26 [20:55:58] [Server thread/NOTICE]: [PurePerms] El soporte multi-nivel se encuentra actualmente deshabilitado. 2021-04-26 [20:55:58] [Server thread/NOTICE]: [PurePerms] ¡No olvides habilitar el soporte multi-nivel (enable-multiworld-perms: true en config.yml) si quieres establecer permisos-por-mundo! 2021-04-26 [20:55:58] [Server thread/INFO]: Loading EasyKits v1.1.5 2021-04-26 [20:55:58] [Server thread/INFO]: [EasyKits] loaded EconomyAPI 2021-04-26 [20:55:58] [Server thread/INFO]: Loading MyPlot v1.10.1 2021-04-26 [20:55:58] [Server thread/INFO]: Loading Killmoney-PMMP v1.0.2-beta 2021-04-26 [20:55:58] [Server thread/INFO]: Loading PurePermsScore v1.0.0 2021-04-26 [20:55:58] [Server thread/INFO]: Loading BlockSniper v3.2.3 2021-04-26 [20:55:58] [Server thread/INFO]: Loading EcoAPIScore v1.0.0 2021-04-26 [20:55:58] [Server thread/INFO]: Loading SellAll v1.3.0 2021-04-26 [20:55:58] [Server thread/INFO]: Loading PureChat v1.4.11 2021-04-26 [20:55:58] [Server thread/INFO]: Loading Prisons v2.0.0 2021-04-26 [20:55:58] [Server thread/INFO]: Loading PrisonScore v1.0.0 2021-04-26 [20:55:58] [Server thread/INFO]: Enabling TimeCommander v1.0.2 2021-04-26 [20:55:58] [Server thread/INFO]: Enabling Broadcaster v1.5 2021-04-26 [20:55:58] [Server thread/INFO]: Enabling CustomAlerts v2.1 2021-04-26 [20:55:58] [Server thread/INFO]: Enabling MyPlot v1.10.1 2021-04-26 [20:55:58] [Server thread/INFO]: Preparing world "world" 2021-04-26 [20:55:58] [Server thread/INFO]: Enabling PlayerSelectors v1.0.8 2021-04-26 [20:55:58] [Server thread/INFO]: Enabling Slapper v1.6.1 2021-04-26 [20:55:58] [Server thread/INFO]: Enabling CombatLogger v0.0.6 2021-04-26 [20:55:58] [Server thread/INFO]: Enabling EasyModeration v1.0.0 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling Worlds v3.0.7 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling DynamicFT v1.0.2 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling BugReport v1.0.0 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling MapImageEngine v1.1.3 2021-04-26 [20:55:59] [Server thread/INFO]: [MapImageEngine] MapImageEngine enabling... 2021-04-26 [20:55:59] [Server thread/INFO]: [MapImageEngine] Notice #1: find the instructions in the plugin folder 2021-04-26 [20:55:59] [Server thread/INFO]: [MapImageEngine] Notice #2: after installing new images or updating plugin enabling may take longer, but then it will be as usual 2021-04-26 [20:55:59] [Server thread/INFO]: [MapImageEngine] Notice #3: after installing MapImageEngine v1.1 you must place all your previously placed images again 2021-04-26 [20:55:59] [Server thread/INFO]: [MapImageEngine] MapImageEngine enabled! 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling RenameItems v2.0 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling theSpawn v1.2.4 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling WorldGuard v1.1.93 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling MineReset v3.2.0 2021-04-26 [20:55:59] [Server thread/WARNING]: [MineReset] A mine with the name A is connected to a level which is not loaded. You won't be able to use it until you load the level correctly. 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling MultiWorld v1.5.2 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling PiggyCrates v2.0.9 2021-04-26 [20:55:59] [Server thread/ERROR]: [PiggyCrates] Invalid enchantment configuration used in crate Especial 2021-04-26 [20:55:59] [Server thread/ERROR]: [PiggyCrates] Invalid enchantment configuration used in crate Especial 2021-04-26 [20:55:59] [Server thread/ERROR]: [PiggyCrates] Invalid enchantment configuration used in crate Especial 2021-04-26 [20:55:59] [Server thread/ERROR]: [PiggyCrates] Invalid enchantment configuration used in crate Especial 2021-04-26 [20:55:59] [Server thread/ERROR]: [PiggyCrates] Invalid enchantment configuration used in crate Especial 2021-04-26 [20:55:59] [Server thread/ERROR]: [PiggyCrates] Invalid enchantment configuration used in crate Especial 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling ScoreHud v6.1.0 2021-04-26 [20:55:59] [Server thread/CRITICAL]: ParseError: "syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)" (EXCEPTION) in "plugins/ScoreHud.phar/src/Ifera/ScoreHud/libs/jackmd/scorefactory/ScoreFactory" at line 40 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #0 pmsrc/vendor/pocketmine/classloader/src/BaseClassLoader(124): BaseClassLoader->loadClass(string[52] Ifera\ScoreHud\libs\jackmd\scorefactory\ScoreFactory) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #1 (): BaseClassLoader->{closure}(string[52] Ifera\ScoreHud\libs\jackmd\scorefactory\ScoreFactory) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #2 (): spl_autoload_call(string[52] Ifera\ScoreHud\libs\jackmd\scorefactory\ScoreFactory) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #3 plugins/ScoreHud.phar/src/Ifera/ScoreHud/utils/Utils(85): class_exists(string[52] Ifera\ScoreHud\libs\jackmd\scorefactory\ScoreFactory) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #4 plugins/ScoreHud.phar/src/Ifera/ScoreHud/ScoreHud(76): Ifera\ScoreHud\utils\Utils::checkVirions() 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/plugin/PluginBase(116): Ifera\ScoreHud\ScoreHud->onEnable() 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/plugin/PluginManager(552): pocketmine\plugin\PluginBase->setEnabled(boolean 1) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/Server(1785): pocketmine\plugin\PluginManager->enablePlugin(object Ifera\ScoreHud\ScoreHud) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/Server(1771): pocketmine\Server->enablePlugin(object Ifera\ScoreHud\ScoreHud) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/Server(1584): pocketmine\Server->enablePlugins(integer 1) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[20] /server/server-data/, string[28] /server/server-data/plugins/) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server() 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #12 pmsrc(11): require(string[64] phar:///server/jars/pmmp-1834.phar/src/pocketmine/PocketMine.php) 2021-04-26 [20:55:59] [Server thread/INFO]: Disabling ScoreHud v6.1.0 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling WarpsPro v1.3.0 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling FormAPI v1.3.0 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling XMines v1.0.0 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling BasicScore v1.2.0 2021-04-26 [20:55:59] [Server thread/CRITICAL]: ParseError: "syntax error, unexpected '?', expecting function (T_FUNCTION) or const (T_CONST)" (EXCEPTION) in "plugins/BasicScore_dev-8.phar/src/Ifera/BasicScore/utils/Utils" at line 12 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #0 pmsrc/vendor/pocketmine/classloader/src/BaseClassLoader(124): BaseClassLoader->loadClass(string[28] Ifera\BasicScore\utils\Utils) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #1 (): BaseClassLoader->{closure}(string[28] Ifera\BasicScore\utils\Utils) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #2 plugins/BasicScore_dev-8.phar/src/Ifera/BasicScore/Main(29): spl_autoload_call(string[28] Ifera\BasicScore\utils\Utils) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/plugin/PluginBase(116): Ifera\BasicScore\Main->onEnable() 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/plugin/PluginManager(552): pocketmine\plugin\PluginBase->setEnabled(boolean 1) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/Server(1785): pocketmine\plugin\PluginManager->enablePlugin(object Ifera\BasicScore\Main) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/Server(1771): pocketmine\Server->enablePlugin(object Ifera\BasicScore\Main) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/Server(1584): pocketmine\Server->enablePlugins(integer 1) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[20] /server/server-data/, string[28] /server/server-data/plugins/) 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server() 2021-04-26 [20:55:59] [Server thread/CRITICAL]: #10 pmsrc(11): require(string[64] phar:///server/jars/pmmp-1834.phar/src/pocketmine/PocketMine.php) 2021-04-26 [20:55:59] [Server thread/INFO]: Disabling BasicScore v1.2.0 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling InvCrashFix v0.0.1 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling MaxEnchants v1.2.1 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling SlapperUI v0.0.1 2021-04-26 [20:55:59] [Server thread/INFO]: [SlapperUI] Plugin hasil enable! 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling AntiVoid v1.1.0 2021-04-26 [20:55:59] [Server thread/INFO]: [AntiVoid] Enabled Worlds: world, Minas 2021-04-26 [20:55:59] [Server thread/INFO]: [AntiVoid] Disabled Worlds: 2021-04-26 [20:55:59] [Server thread/INFO]: [AntiVoid] Use Default World: TRUE 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling AutoClearLagg v3.1.0 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling BlockItemFrame-HiroTeam v2.0.2 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling AutoMineReset v0.3.5 2021-04-26 [20:55:59] [Server thread/NOTICE]: [AutoMineReset] Enabled! 2021-04-26 [20:55:59] [Server thread/INFO]: Enabling EconomyAPI v5.7.2 2021-04-26 [20:56:00] [Server thread/NOTICE]: [EconomyAPI] COVID19: Wash your hands with soap and running water for 30 seconds frequently. 2021-04-26 [20:56:00] [Server thread/NOTICE]: [EconomyAPI] Database provider was set to: Yaml 2021-04-26 [20:56:00] [Server thread/INFO]: Enabling EasyEdit v1.0.0 2021-04-26 [20:56:00] [Server thread/INFO]: Enabling PurePerms v1.4.3 2021-04-26 [20:56:00] [Server thread/NOTICE]: [PurePerms] Utilizando YAMLv1 como proveedor. 2021-04-26 [20:56:00] [Server thread/INFO]: Enabling EasyKits v1.1.5 2021-04-26 [20:56:01] [Server thread/INFO]: Enabling Killmoney-PMMP v1.0.2-beta 2021-04-26 [20:56:01] [Server thread/INFO]: Enabling PurePermsScore v1.0.0 2021-04-26 [20:56:01] [Server thread/INFO]: Enabling BlockSniper v3.2.3 2021-04-26 [20:56:01] [Server thread/INFO]: [BlockSniper] [BlockSniper] Language selected: en 2021-04-26 [20:56:01] [Server thread/INFO]: Enabling EcoAPIScore v1.0.0 2021-04-26 [20:56:01] [Server thread/INFO]: Enabling SellAll v1.3.0 2021-04-26 [20:56:01] [Server thread/INFO]: Enabling PureChat v1.4.11 2021-04-26 [20:56:01] [Server thread/NOTICE]: [PureChat] No valid factions plugin in default-factions-plugin node was found. Disabling factions plugin support. 2021-04-26 [20:56:01] [Server thread/INFO]: Enabling Prisons v2.0.0 2021-04-26 [20:56:01] [Server thread/INFO]: Enabling PrisonScore v1.0.0

Ifera commented 3 years ago

If you could just have send this log a bit earlier.. Anyways there are two things you want to do.

  1. Get ScoreHud v6.2.0
  2. Update your server's php binary to 7.4+.

Do that and your errors will be fixed.

JohanBrionis commented 3 years ago

I already have the scorehub v6.2.0

how are binaries changed?

Ifera commented 3 years ago

If you're using a host then ask them to update. Else you may ask on forums.pmmp.io or pocketmines' community discord server.

JohanBrionis commented 3 years ago

OK thank you <3