Skip to main content
The MaintenanceChangedEvent is fired whenever the maintenance mode status changes, either from enabled to disabled or vice versa.

Event Details

Package: eu.kennytv.maintenance.api.event Type: Notification event (read-only) Fired when:
  • Maintenance mode is enabled via command, API, or scheduled timer
  • Maintenance mode is disabled via command, API, or scheduled timer

Class Definition

This event is implemented as a Java record, providing an immutable data structure with automatic getter methods.

Methods

isMaintenance()

Returns whether maintenance mode has been enabled or disabled.
Returns: true if maintenance mode has been enabled, false if it has been disabled

Usage Example

Basic Example

Advanced Example: Integration with Discord

Example: Kicking Custom Players

See Also