ServerMaintenanceChangedEvent is a proxy-specific event that is fired whenever maintenance mode is enabled or disabled on an individual server behind a proxy (BungeeCord/Velocity).
This event is only available when using the Maintenance plugin on a proxy server (BungeeCord or Velocity). It is not available on standalone Spigot/Paper servers.
Event Details
Package:eu.kennytv.maintenance.api.event.proxy
Type: Notification event (read-only)
Available on: Proxy servers only (BungeeCord/Velocity)
Fired when:
- Maintenance mode is enabled on a specific backend server
- Maintenance mode is disabled on a specific backend server
- The
/maintenance <server>command is used to toggle server maintenance
Class Definition
Methods
getServer()
Returns the wrapped server object for the server that changed maintenance status.Server wrapper object
isMaintenance()
Returns whether maintenance mode has been enabled or disabled on the server.true if maintenance has been enabled on the server, false if it has been disabled
Server Interface
TheServer object provides the following methods: