PolarDocs Client Area

CloudDetectionEvent Class

Introduction#

The CloudDetectionEvent class represents an event that is triggered when a player triggers a cloud-based anticheat check.

Methods#

This class extends UserCancellableEvent and adds methods related to cloud detections.

Getter check#

java
CloudCheck check();

Returns:

The CloudCheck that triggered the detection.

Getter cloudCheckType (deprecated)#

Deprecated, replaced by CloudCheck.

java
CloudCheckType cloudCheckType();

Returns:

The CloudCheckType that triggered the detection.

Setter chatAlertMessage#

java
void chatAlertMessage(String chatAlertMessage);

Description:

Changes the message in the chat alert.

Parameters:

  • chatAlertMessage - The new alert message

Returns:

Nothing.

Getter chatAlertMessage#

java
String chatAlertMessage();

Returns:

A string containing the chat alert message.

Getter details (deprecated)#

Deprecated, replaced by CloudCheck.

String details();

Returns:

Details about this detection, such as cloud check tags.

Setter actionCommand#

java
void actionCommand(String actionCommand);

Description:

Changes the command that is executed when the chat alert is clicked.

Parameters:

  • actionCommand - The new action command

Returns:

Nothing.

Getter actionCommand#

java
String actionCommand();

Returns:

Command executed on click of the cloud detection alert message.