menu
#5038927 Return value of sys\jordan\tags\tag\group\defaults\PurePermsTagGroup::sys\jordan\tags\tag\group\defaults\{closure}() must be of the type string, int returned

Submitted by PocketMine-MP 3.22.0

General information

Version: 3.22.0
Git commit: c32c2146
Plugin involvement: Direct
Report date: 2021-07-22 07:14:18 +0000 UTC
Server uptime: 0 days 0 hours 6 minutes 29 seconds

System Information

PHP version: 7.4.15
Operating system: linux
System banner: Linux 21f73ee0-63eb-41cc-a5d5-fc21d17c6533 4.15.0-130-generic #134-Ubuntu SMP Tue Jan 5 20:46:26 UTC 2021 x86_64

Error information

Warning: the PlayerTags plugin was directly involved in this crash. Please contact the plugin author.
Message: Return value of sys\jordan\tags\tag\group\defaults\PurePermsTagGroup::sys\jordan\tags\tag\group\defaults\{closure}() must be of the type string, int returned
File: plugins/PlayerTags_v1.0.9.phar/src/sys/jordan/tags/tag/group/defaults/PurePermsTagGroup
Line: #34
Error level: TypeError
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

/**
* @param TagFactory $factory
* @return ExternalPluginTag[]
* @noinspection PhpUndefinedMethodInspection
*/
public function register(TagFactory $factory): array {
return [
new ExternalPluginTag("rank", $this->getExternalPlugin(), function (Player $player, Plugin $plugin): string {
return $plugin->getUserDataMgr()->getGroup($player)->getName() ?? "N/A";
}),
new ExternalPluginTag("prefix", $this->getExternalPlugin(), function (Player $player, Plugin $plugin): string {
return $plugin->getUserDataMgr()->getNode($player, "prefix") ?? "";
}),
new ExternalPluginTag("suffix", $this->getExternalPlugin(), function (Player $player, Plugin $plugin): string {
return $plugin->getUserDataMgr()->getNode($player, "suffix") ?? "";
})
];
}
}
#0 plugins/PlayerTags_v1.0.9.phar/src/sys/jordan/tags/tag/ExternalPluginTag(39): sys\jordan\tags\tag\group\defaults\PurePermsTagGroup->sys\jordan\tags\tag\group\defaults\{closure}(object pocketmine\Player, object _64FF00\PurePerms\PurePerms)
#1 plugins/PlayerTags_v1.0.9.phar/src/sys/jordan/tags/tag/TagFactory(167): sys\jordan\tags\tag\ExternalPluginTag->replace(object pocketmine\Player, string[27] &c... ..f20|20 &aPing: &f90)
#2 plugins/PlayerTags_v1.0.9.phar/src/sys/jordan/tags/tag/TagFactory(179): sys\jordan\tags\tag\TagFactory->replace(object pocketmine\Player)
#3 plugins/PlayerTags_v1.0.9.phar/src/sys/jordan/tags/tag/TagFactory(70): sys\jordan\tags\tag\TagFactory->update()
#4 pmsrc/src/pocketmine/scheduler/ClosureTask(61): sys\jordan\tags\tag\TagFactory->sys\jordan\tags\tag\{closure}(integer 7691)
#5 pmsrc/src/pocketmine/scheduler/TaskHandler(137): pocketmine\scheduler\ClosureTask->onRun(integer 7691)
#6 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 7691)
#7 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 7691)
#8 pmsrc/src/pocketmine/Server(2389): pocketmine\plugin\PluginManager->tickSchedulers(integer 7691)
#9 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#10 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#11 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#12 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#13 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#14 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show