Installation
Requirements
Section titled βRequirementsβ- Java 21+ - required. The plugin is compiled to Java 21 bytecode; on Java 17 or older it fails
with
UnsupportedClassVersionError. Check withjava -version. - Paper / Folia (or a Paper fork). Spigot is not supported.
- Minecraft 1.20.4 β 1.21.11+, as long as the server runs Java 21. (Most 1.20.4 servers run Java 17 - those must switch to 21 first.)
- PlaceholderAPI - optional soft dependency, recommended for placeholders.
- Confirm
java -versionreports 21 or higher. - Stop the server.
- Drop
OptimalAFKZone.jarintoplugins/. - (Optional) Add
PlaceholderAPI.jarfor placeholder support. - Start the server. The plugin generates its files and prints a startup banner.
- Run
/plugins-OptimalAFKZoneshould be green.
sqlite-jdbc and XSeries download automatically on first startup via Paperβs library loader, so
the first launch needs internet access and may take a few extra seconds.
Generated files
Section titled βGenerated filesβplugins/OptimalAFKZone/ββ config.yml # global settingsββ messages.yml # every messageββ zones/β ββ _template.yml # template new zones copy from (no live zones ship)ββ boosters/β ββ shard2x.ymlβ ββ shard3x.ymlββ shops/β ββ shards.yml # default rotating shopββ guis/β ββ confirm.yml # purchase confirmation menuββ data/ ββ data.db # SQLite player data (do not edit by hand)No zones ship by default - create them in-game. Continue to Creating AFK Zones.