Mockingbird icon indicating copy to clipboard operation
Mockingbird copied to clipboard

Question : How to do action on detection

Open benda95280 opened this issue 4 years ago • 2 comments

Dear,

How it could be possible to do actions on detection ? (Like write in database some informations ...) It seems there is no events ?

Regards,

benda95280 avatar Nov 12 '21 18:11 benda95280

yes there isn't (there are logs but those aren't saved on disk iirc) you would probably want to edit the code yourself to save information in a database when a player fails a check

mmm545 avatar Nov 12 '21 18:11 mmm545

@mmm545 Thanks for the answer, should i work only here ? https://github.com/ethaniccc/Mockingbird/blob/acaf096b34f49a1792354e926324a19e8ab65b1c/src/ethaniccc/Mockingbird/detections/Detection.php#L119

benda95280 avatar Nov 12 '21 18:11 benda95280