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> <into_currency> [--from <currency>]

➤ Description

This command imports economy data from supported plugins directly into LiteEco. It now supports multi-currency migration, allowing you to import specific currencies from external plugins and assign them to your corresponding LiteEco currencies defined in the config.yml.


⚙️ Arguments

ArgumentDescription
EssentialsXImports balances from the EssentialsX plugin.
BetterEconomyImports balances from BetterEconomy plugin.
ScruffyBoyEconomyImports balances from ScruffyBoyEconomy plugin.
EzEconomyImports balances from the EzEconomy plugin.
SimpleEconomyImports player data from the SimpleEconomy plugin.
TheosisEconomyImports balances from TheosisEconomy plugin.
PlayerPointsImports balances from PlayerPoints plugin.

💰 Currency Parameter

The <into_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 EzEconomy into the dollars LiteEco currency from dollar currency:

/eco database import EzEconomy dollars --from dollar

🧠 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
EzEconomyEzEconomy database/tablesLiteEco database
SimpleEconomySimpleEconomy database/tablesLiteEco database
TheosisEconomyTheosisEconomy balancesLiteEco database
PlayerPointsPlayerPoints 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.