BlazeBans API/Reference
Type reference
Every public type in `net.blazebans.api`, in one place. Twenty-three classes.
BlazeBansProvider
Static holder. net.blazebans.api.BlazeBansProvider.
BlazeBansApi
PunishmentService
Every method returns a CompletableFuture. See Threading.
target accepts a name, a UUID string, or a raw IP address. IDs work with or without the #.
PlayerService
Punishment
Immutable record.
Derived:
PunishmentCreateRequest
Mutable. Every field has a getter and a setter of the same name.
Constructor order: type, targetName, targetUuid, targetIpAddress, staffName, staffUuid, duration, reason, proofUrl, serverScope, serverId, silent.
PunishmentRevokeRequest
Constructor: types, target, staffName, reason.
Enums
PunishmentType: BAN, MUTE, WARN, KICK, IP_BAN, IP_MUTE, VOICE_MUTE
PunishmentStatus: ACTIVE, REVOKED, EXPIRED
PunishmentScope: GLOBAL, SERVER
BlazeBansEnforcementType: BAN_LOGIN, KICK, MUTE_CHAT, MUTE_COMMAND
Records carry scope as a string rather than the enum, so compare case-insensitively.
PlayerProfile
Record: name(), uuid(), lastSeen(). UUID and instant may be null.
PlayerNameEntry
Record: name(), uuid(), seenAt(), source(). UUID and instant may be null.
BlazeBansAddon
Record: pluginId(), name(), version(), description(), status().
All five are trimmed on construction, and null becomes "". pluginId and name throw IllegalArgumentException if blank.
Events
All extend org.bukkit.event.Event and implement Cancellable.
enforcementDelay(Duration) clamps null and negative values to zero, and the Paper implementation caps the total at five seconds.
What cancelling each one does is in Event reference.
AddonConsole
Constructors:
new AddonConsole(String addonName, Consumer<Component> output);
new AddonConsole(String addonName, Consumer<Component> output, Consumer<String> trueColorOutput);addonName cannot be blank.
Every line is prefixed [BlazeBans <addonName>].
Package layout
net.blazebans.api
BlazeBansApi
BlazeBansProvider
net.blazebans.api.addon
BlazeBansAddon
net.blazebans.api.console
AddonConsole
TrueColorAnsi
net.blazebans.api.event
BlazeBansEnforcementType
BlazeBansMutedChatEvent
BlazeBansMutedCommandEvent
BlazeBansPunishmentCreateEvent
BlazeBansPunishmentCreatedEvent
BlazeBansPunishmentEnforceEvent
BlazeBansPunishmentRevokeEvent
BlazeBansPunishmentRevokedEvent
net.blazebans.api.player
PlayerNameEntry
PlayerProfile
PlayerService
net.blazebans.api.punishment
Punishment
PunishmentCreateRequest
PunishmentRevokeRequest
PunishmentScope
PunishmentService
PunishmentStatus
PunishmentTypeThese names are frozen across releases. Nothing outside this package is supported.

