Skip to content

Developer API Overview

This content is for 2.0.0 (Beta). Switch to the latest version for up-to-date documentation.

NookureStaff provides a clean API module (NookureStaff-API) designed to allow other plugins or standalone addons to interact with staff wrappers, subscribe to event buses, and manage punishments.


build.gradle.kts
repositories {
maven("https://repo.nookure.com/repository/maven-public/")
}
dependencies {
compileOnly("com.nookure.staff:NookureStaff-API:2.0.0")
}

  1. Player Wrapper Pattern:
    • PlayerWrapper: Represents standard player models, caching UUID, name, and database state.
    • StaffPlayerWrapper: Extends PlayerWrapper for players with nookure.staff. Holds staff mode status, vanish state, and assigned glow colors.
  2. Dependency Injection & Services:
    • Internal components and services (such as PunishmentService, AltAccountService, S3PresignerService, and ActionService) are managed using Google Guice.
    • Plugins can utilize @Inject to resolve service singletons.
  3. Decoupled Event Bus:
    • In addition to standard Bukkit listeners, NookureStaff features an internal high-performance event bus (EventManager) for cross-platform and network-level packet events.