menu
#7556327 Alias "test:custom" is already registered

Submitted by PocketMine-MP 4.9.0

General information

Version: 4.9.0
Git commit: 785dc712
Plugin involvement: Indirect
Report date: 2022-09-22 19:22:05 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.22
JIT status: Disabled
Operating system: linux
System banner: Linux 797bac41-1e1e-493e-8b2c-eb899db8f1d9 5.10.0-0.bpo.9-amd64 #1 SMP Debian 5.10.70-1~bpo10+1 (2021-10-10) x86_64

Error information

Warning: the CustomItemAPI plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Message: Alias "test:custom" is already registered
File: pmsrc/src/utils/StringToTParser
Line: #51
Error level: InvalidArgumentException
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
	 * @var \Closure[]
* @phpstan-var array<string, \Closure(string $input) : T>
*/
private array $callbackMap = [];

/** @phpstan-param \Closure(string $input) : T $callback */
public function register(string $alias, \Closure $callback) : void{
$key = $this->reprocess($alias);
if(isset($this->callbackMap[$key])){
throw new \InvalidArgumentException("Alias \"$key\" is already registered");
}
$this->callbackMap[$key] = $callback;
}

/** @phpstan-param \Closure(string $input) : T $callback */
public function override(string $alias, \Closure $callback) : void{
$this->callbackMap[$this->reprocess($alias)] = $callback;
}

/**
#0 plugins/CustomItemAPI_dev-69.phar/src/refaltor/customitemapi/managers/ItemManager(93): pocketmine\utils\StringToTParser->register(string[11] test:custom, object Closure#28562)
#1 plugins/NimirisCore/src/Nimiris/Main(118): refaltor\customitemapi\managers\ItemManager->start()
#2 pmsrc/src/plugin/PluginBase(117): Nimiris\Main->onEnable()
#3 pmsrc/src/plugin/PluginManager(448): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#4 pmsrc/src/Server(1421): pocketmine\plugin\PluginManager->enablePlugin(object Nimiris\Main#22101)
#5 pmsrc/src/Server(1026): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#21909)
#6 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#7 pmsrc/src/PocketMine(328): pocketmine\server()
#8 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show