Skip to main content

💾 Database Import Command – LiteEco

LiteEco provides a powerful import system for migrating player balance data from other popular economy plugins into the LiteEco database. This allows for smooth transitions between plugins without data loss.


🧩 Command Overview

/eco database import <argument> <currency>

➤ Description

This command imports economy data from supported plugins directly into LiteEco. The imported balances will be assigned to the specified LiteEco currency defined in your config.yml.


⚙️ Arguments

ArgumentDescription
EssentialsXImports player balances from the EssentialsX plugin.
BetterEconomyImports data from BetterEconomy plugin storage.
ScruffyBoyEconomyImports balances from ScruffyBoyEconomy plugin.
CraftConomy3Imports player data from the CraftConomy3 database or storage files.
TheosisEconomyImports balances from TheosisEconomy plugin.

💰 Currency Parameter

The <currency> argument refers to any currency key defined in your config.yml file under the economy: section of LiteEco.

Example configuration:

economy:
currencies:
dollars:
currency_name: Dollars
currency_format: '$ <money>'
credits:
currency_name: Credits
currency_format: '€ <money>'

When importing, specify which LiteEco currency should receive the imported data:

/eco database import EssentialsX dollars

This will import all EssentialsX balances into the LiteEco currency dollars.


💡 Usage Examples

Import data from EssentialsX into the dollars currency:

/eco database import EssentialsX dollars

Import data from BetterEconomy into the credits currency:

/eco database import BetterEconomy credits

Import from CraftConomy3 into the default LiteEco currency:

/eco database import CraftConomy3 dollars

🧠 Notes & Recommendations

  • Always back up your databases before performing imports.
  • The import process reads data directly from the existing plugin’s database or data files.
  • Make sure the source plugin’s data files or database are still accessible when running the command.
  • Imported balances will overwrite any existing player data for the specified currency.
  • The plugin automatically maps player UUIDs and usernames during import.
  • Depending on the data size, imports may take a few seconds to complete.

✅ Quick Summary

ArgumentSource PluginImport Target
EssentialsXEssentialsX economy dataLiteEco database
BetterEconomyBetterEconomy plugin dataLiteEco database
ScruffyBoyEconomyScruffyBoyEconomy plugin dataLiteEco database
CraftConomy3CraftConomy3 database/tablesLiteEco database
TheosisEconomyTheosisEconomy balancesLiteEco database

This command provides a reliable and efficient way to transition your server’s economic data from other economy systems into LiteEco while preserving player balances and currency structure.