Polar Help

OrdinaryKickEvent Class

Introduction

The OrdinaryKickEvent class represents an event that is triggered when a player is kicked from the server.

Methods

This class extends UserCancellableEvent and adds methods related to kicks.

reason

String reason();

Description:

Gets the reason for the kick.

Returns:

The reason as a String.

apiInitiated

boolean apiInitiated();

Description:

Determines if the kick was initiated by the API.

Returns:

true if the kick was initiated by the API, false otherwise.