Skip to content

Events

PlayerViolationEvent

Triggered when a player get flagged by the anticheat

Methods

java
package me.rerere.matrix.api.events;

public class PlayerViolationEvent extends Event implements Cancellable {
    public Player getPlayer()

    public HackType getHackType()

    public String getMessage()

    public int getViolations()

    public String getComponent()
    
    public boolean isCancelled()

    public void setCancelled(boolean b)
}

PlayerViolationCommandEvent

Triggered when the player's violation level reaches the threshold set in the configuration file and starts to execute the command.

Methods

java
package me.rerere.matrix.api.events;

public class PlayerViolationCommandEvent extends Event implements Cancellable {
    public Player getPlayer()

    public HackType getHackType()

    public String getCommand()

    @Override
    public boolean isCancelled()

    @Override
    public void setCancelled(boolean b)
}

Made with ❤️ by RE