#System Requirements

ComponentRequirement
Minecraft Version1.20 and above (api-version: 1.20)
Server SoftwareSpigot, Paper, or Purpur
Java VersionJava 17 or newer
Required DependencyNone (Vault + an economy plugin recommended for economy features)
Database BackendEmbedded SQLite (default) or external MySQL / MariaDB via HikariCP

#Step-by-Step Setup

  1. Drop L-Claim-2.0.2.jar into your server's plugins/ folder.
  2. For full economy support (town banks, taxes, upkeep, farmer sales, bounties, and shop taxes), ensure Vault and an economy provider (e.g. EssentialsX) are installed.
  3. Start the server. L-Claim automatically generates config.yml, research.yml, language files (messages_en.yml, messages_tr.yml, messages_es.yml), and lclaim.db inside plugins/L-Claim/.
  4. Edit language, economy values, war schedules, and map settings in config.yml to match your server.
  5. 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.

plugins/L-Claim/config.yml (database)
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: false
Remote MySQL Security
Always enable use-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 backup to create a timestamped snapshot inside plugins/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.