#System Requirements
| Component | Requirement |
|---|---|
| Minecraft Version | 1.20 and above (api-version: 1.20) |
| Server Software | Spigot, Paper, or Purpur |
| Java Version | Java 17 or newer |
| Required Dependency | None (Vault + an economy plugin recommended for economy features) |
| Database Backend | Embedded SQLite (default) or external MySQL / MariaDB via HikariCP |
#Step-by-Step Setup
- Drop
L-Claim-2.0.2.jarinto your server'splugins/folder. - For full economy support (town banks, taxes, upkeep, farmer sales, bounties, and shop taxes), ensure
Vaultand an economy provider (e.g. EssentialsX) are installed. - Start the server. L-Claim automatically generates
config.yml,research.yml, language files (messages_en.yml,messages_tr.yml,messages_es.yml), andlclaim.dbinsideplugins/L-Claim/. - Edit
language, economy values, war schedules, and map settings inconfig.ymlto match your server. - Apply changes live in-game using
/lc reload.
#Database Configuration (SQLite / MySQL / MariaDB)
L-Claim persists all data across indexed relational SQL tables (towns, town_members, town_trusted, claimed_chunks, town_permissions, town_settings, plot_players, chest_locks, farmers, farmer_items, town_diplomacy, town_ally_permissions, town_diplomacy_logs, bounties, town_ranks, town_blacklist, town_researches, meta) backed by HikariCP.
database:
type: "sqlite"
sqlite-file: "lclaim.db"
mysql:
host: "localhost"
port: 3306
database: "lclaim"
username: "lclaim_user"
password: "strong_password"
use-ssl: true
verify-server-certificate: true
allow-public-key-retrieval: falseuse-ssl: true and replace default root credentials when connecting to a remote database host. L-Claim logs an explicit warning when connecting unencrypted to non-localhost hosts.#Automatic Legacy YAML Migration & Backups
- LegacyYamlMigrator: Automatically detects older YAML storage on startup and migrates all towns and claims asynchronously into SQL.
- Instant Backups: Run
/lc backupto create a timestamped snapshot insideplugins/L-Claim/backups/. - Periodic Auto-Save: Controlled via
misc.auto-save: 5(minutes) with dirty-flag tracking; trigger an immediate flush anytime with/lc saveall.