I'm having trouble using the enchantment table. When placing the item, it returns to the inventory. If anyone could help you, I would appreciate it.
PocketMine doesn't support enchantment tables afaik. If you don't need plugins, you should use the official Bedrock dedicated server instead.