Class LeaveEvent
java.lang.Object
com.welcome234.pluginsystem.events.LeaveEvent
Called when a player leaves the server
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the reason of the kick, or why they have leftGets the player who has left the serverbooleanisKick()Gets whether the player has been kicked from the server
-
Constructor Details
-
LeaveEvent
-
-
Method Details
-
getPlayer
Gets the player who has left the server- Returns:
- Player instance
-
isKick
public boolean isKick()Gets whether the player has been kicked from the server- Returns:
- Whether kicked
-
getKickReason
Gets the reason of the kick, or why they have left- Returns:
- Kick reason
-