hi
i made a webhook which logs to discord if the user gets kicked but i cant see any way how to execute it when the player does get kicked
pls help
hi
i made a webhook which logs to discord if the user gets kicked but i cant see any way how to execute it when the player does get kicked
pls help
You can use the PlayerRemoving event, but that will be invoked whenever a player leaves the game or gets kicked. The only way to do this when a player is kicked is to run the code before you kick the player, if your using a third party admin system this is obviously going to be a problem.
It can be done with most admin systems though.