nvalidArgumentException: "Failed to register item: Alias "facebook" is already registered
royaljacques opened this issue · 3 comments
royaljacques commented
error log
[Server thread/CRITICAL]: InvalidArgumentException: "Failed to register item: Alias "facebook" is already registered" (51) in "plugins/CustomItemLoader-master/src/alvin0319/CustomItemLoader/CustomItemManager" at line 130
--- Stack trace ---
#0 plugins/CustomI
config:
items:
facebook:
id: 2000
meta: 0
namespace: "custom:facebook"
name: facebook
allow_off_hand: true
max_stack_size: 64
texture: stick
durable: false
max_durability: 64
mining_speed: 10
food: true
can_always_eat: true
nutrition: 10
saturation: 2
royaljacques commented
for pm4
alvin0319 commented
Item is already registered. However, this seems werid. can you send full stacktrace?
MrSquid1yt commented
I'm not the Author but same problem
[Server thread/CRITICAL]: InvalidArgumentException: "Failed to register item: Alias "facebook" is already registered" (51) in "plugins/CustomItemLoader/src/alvin0319/CustomItemLoader/CustomItemManager" at line 130
--- Stack trace ---
#0 plugins/CustomItemLoader/src/alvin0319/CustomItemLoader/CustomItemManager(152): alvin0319\CustomItemLoader\CustomItemManager->registerItem(object alvin0319\CustomItemLoader\item\CustomDurableItem#27272)
#1 plugins/CustomItemLoader/src/alvin0319/CustomItemLoader/CustomItemLoader(69): alvin0319\CustomItemLoader\CustomItemManager->registerDefaultItems(array[1])
#2 pmsrc/src/plugin/PluginBase(137): alvin0319\CustomItemLoader\CustomItemLoader->onEnable()
#3 pmsrc/src/plugin/PluginManager(438): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#4 pmsrc/src/Server(1383): pocketmine\plugin\PluginManager->enablePlugin(object alvin0319\CustomItemLoader\CustomItemLoader#23493)
#5 pmsrc/src/Server(1009): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#23443)
#6 pmsrc/src/PocketMine(303): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[51] Path\To\Server\Pocketmine4\, string[59]Path\To\Server\Pocketmine4\plugins\)
#7 pmsrc/src/PocketMine(326): pocketmine\server()
#8 pmsrc(11): require(string[95] phar://Path/To/Server/Pocketmine4/PocketMine-MP.phar/src)
--- Previous ---
InvalidArgumentException: "Alias "facebook" is already registered" (EXCEPTION) in "pmsrc/src/utils/StringToTParser" at line 51
#0 plugins/CustomItemLoader/src/alvin0319/CustomItemLoader/CustomItemManager(126): pocketmine\utils\StringToTParser->register(string[8] facebook, object Closure#27294)
#1 plugins/CustomItemLoader/src/alvin0319/CustomItemLoader/CustomItemManager(152): alvin0319\CustomItemLoader\CustomItemManager->registerItem(object alvin0319\CustomItemLoader\item\CustomDurableItem#27272)
#2 plugins/CustomItemLoader/src/alvin0319/CustomItemLoader/CustomItemLoader(69): alvin0319\CustomItemLoader\CustomItemManager->registerDefaultItems(array[1])
#3 pmsrc/src/plugin/PluginBase(137): alvin0319\CustomItemLoader\CustomItemLoader->onEnable()
#4 pmsrc/src/plugin/PluginManager(438): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#5 pmsrc/src/Server(1383): pocketmine\plugin\PluginManager->enablePlugin(object alvin0319\CustomItemLoader\CustomItemLoader#23493)
#6 pmsrc/src/Server(1009): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#23443)
#7 pmsrc/src/PocketMine(303): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[51] Path\To\Server\Pocketmine4\, string[59] Path\To\Server\Pocketmine4\plugins\)
#8 pmsrc/src/PocketMine(326): pocketmine\server()
#9 pmsrc(11): require(string[95] phar://Path/To/Server/Pocketmine4/PocketMine-MP.phar/src)
--- End of exception information ---