Package net.md_5.bungee.api.event
Class ServerKickEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
net.md_5.bungee.api.event.ServerKickEvent
- All Implemented Interfaces:
Cancellable
Represents a player getting kicked from a server.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionServerKickEvent
(ProxiedPlayer player, BaseComponent[] kickReasonComponent, ServerInfo cancelServer) Deprecated.ServerKickEvent
(ProxiedPlayer player, BaseComponent[] kickReasonComponent, ServerInfo cancelServer, ServerKickEvent.State state) Deprecated.ServerKickEvent
(ProxiedPlayer player, ServerInfo kickedFrom, BaseComponent[] kickReasonComponent, ServerInfo cancelServer, ServerKickEvent.State state) Deprecated.ServerKickEvent
(ProxiedPlayer player, ServerInfo kickedFrom, BaseComponent reason, ServerInfo cancelServer, ServerKickEvent.State state) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.use component methods insteadDeprecated.use single component methods insteadvoid
setKickReason
(String reason) Deprecated.use component methods insteadvoid
setKickReasonComponent
(BaseComponent[] kickReasonComponent) Deprecated.use single component methods insteadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.md_5.bungee.api.plugin.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
ServerKickEvent
@Deprecated public ServerKickEvent(ProxiedPlayer player, BaseComponent[] kickReasonComponent, ServerInfo cancelServer) Deprecated. -
ServerKickEvent
@Deprecated public ServerKickEvent(ProxiedPlayer player, BaseComponent[] kickReasonComponent, ServerInfo cancelServer, ServerKickEvent.State state) Deprecated. -
ServerKickEvent
@Deprecated public ServerKickEvent(ProxiedPlayer player, ServerInfo kickedFrom, BaseComponent[] kickReasonComponent, ServerInfo cancelServer, ServerKickEvent.State state) Deprecated. -
ServerKickEvent
public ServerKickEvent(ProxiedPlayer player, ServerInfo kickedFrom, BaseComponent reason, ServerInfo cancelServer, ServerKickEvent.State state)
-
-
Method Details
-
getKickReason
Deprecated.use component methods instead- Returns:
- the kick reason
-
setKickReason
Deprecated.use component methods instead- Parameters:
reason
- the kick reason
-
getKickReasonComponent
Deprecated.use single component methods instead- Returns:
- the kick reason
-
setKickReasonComponent
Deprecated.use single component methods instead- Parameters:
kickReasonComponent
- the kick reason
-