Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 568 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 568 Bytes

KarhuAPI

Karhu Anticheat Developer API

Please note that you need to drop KarhuAPI.jar into plugins folder for it to work.

Example below

public final class ExampleListener implements KarhuListener {

public ExampleListener() {
    KarhuAPI.getEventRegistry().addListener(this);
}

@Override
public void onEvent(KarhuEvent event) {

    if(event instanceof KarhuAlertEvent){
       final CheckData check = ((KarhuAlertEvent) event).getCheck();
       final Player player = ((KarhuAlertEvent) event).getPlayer();
    }

}

}