CwCommons

Shared library for CrimsonWarpedCraft Bukkit plugins. Provides reusable infrastructure for configuration loading, command registration, and persistent data storage.

API Reference Get started


Features

  • ConfigManager — loads and validates a YAML config file using Jackson and Jakarta Bean Validation. Any POJO that implements Config and declares JSR-380 constraints (e.g. @NotBlank) can be used. See Config Loading.
  • BaseCommand — thin base class that wraps a CommandAPICommand and implements the Command registration interface, so every plugin command follows the same pattern. See Commands.
  • DataStore — write-behind key-value store with namespaced Repository instances. SQLite is bundled; MongoDB is supported via an optional driver. Bukkit helpers include PlayerDataManager (flushes on PlayerQuitEvent) and AutoFlushTask (periodic flush via the Bukkit scheduler). Custom Jackson serializers for Location and ItemStack are included. See the storage examples.

Documentation


This site uses Just the Docs, a documentation theme for Jekyll.