🛠️Installation Guide
Based on the comprehensive analysis of your source code (Java classes, plugin.yml, and configuration files), here is a complete GitBook page for the Installation & Setup section of your documentation.
This guide covers prerequisites, standard installation, database configuration (SQLite/MySQL), and initial verification.
📥 Installation & Setup
Welcome to the Crown installation guide. Crown is a robust moderation and punishment suite designed for Spigot/Paper servers (1.18+). Follow these steps to get the plugin running on your server.
📋 Prerequisites
Before installing Crown, ensure your server environment meets the following requirements:
Server Software: Spigot, Paper, or Purpur.
Minecraft Version: 1.18 or newer (defined by
api-version: 1.18inplugin.yml).Java Version: Java 17 or newer.
Dependencies:
PlaceholderAPI (Required)
Note on EssentialsX: Crown checks for EssentialsX to handle custom join/quit messages automatically, but it is not a hard requirement.
🚀 Step-by-Step Installation
Download the Plugin: Download the latest
Crown.jarfile from the official resource page or your build pipeline.Install Dependencies: Ensure you have PlaceholderAPI installed in your
/pluginsfolder. Crown relies on this for variable replacement in menus and messages.Upload to Server: Place
Crown.jarinto your server'splugins/directory.Start the Server: Start or restart your server. Do not use
/reload, as this can cause issues with database connections and packet listeners.Verify Installation: Check your server console. You should see the Crown ASCII art banner and a success message:
[Crown] Plugin enabled. Version: 1.0
🗄️ Database Configuration
Crown supports both SQLite (local file) and MySQL (external database). By default, the plugin uses SQLite, which requires no additional setup.
To change the database type, navigate to plugins/Crown/config.yml.
Option A: SQLite (Default)
This creates a local .db file in your plugin folder. Best for single servers.
Option B: MySQL / MariaDB
Recommended for networks or high-traffic servers. This allows data synchronization (punishments, reports) if you plan to link servers in the future (note: currently Crown is single-instance logic, but MySQL offers better performance).
Open
plugins/Crown/config.yml.Change
typetomysql.Fill in your credentials:user has privileges to `CREATE` and `ALTER` tables.
Database Connection: Crown uses HikariCP for connection pooling. Ensure your firewall allows connections on the specified port. If the connection fails, the plugin will log severe errors and may fail to start tasks.
📂 File Structure
After the first launch, Crown will generate the following folder structure:
config.yml: Main settings, database, sounds, and global toggles.messages.yml: Full language localization and prefix settings.mod_mode.yml: Configuration for Moderator Mode tools, items, and glowing settings.punish_info.yml: Layout for the/check <id>command.reports.yml: Configuration for the Report Book GUI categories.menus/: Contains all GUI layouts (punish_menu.yml,history_menu.yml,profile_menu.yml, etc.).punishments/: Individual config files forban.yml,mute.yml,softban.yml, etc., defining commands and screen layouts.mod_sessions/: (Internal) Stores moderator inventory states in case of server crashes.
✅ Post-Installation Checklist
Once installed, we recommend performing the following checks:
Check Permissions: Ensure your administrators have
crown.adminand your moderators havecrown.useandcrown.mod.use.Test PlaceholderAPI: Run
/papi ecloud download Playerand/papi reloadto ensure standard placeholders work in Crown menus.Reload Config: If you make changes to YAML files, run
/crown reloadto apply them without restarting.
❓ Troubleshooting
Issue: "SQLite JDBC driver not found" Crown attempts to load the SQLite driver automatically. If you see this, ensure your server software (Paper/Spigot) is up to date, as modern versions bundle these libraries.
Last updated