Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server logging #424

Open
lenqj opened this issue Sep 21, 2024 · 1 comment
Open

Server logging #424

lenqj opened this issue Sep 21, 2024 · 1 comment

Comments

@lenqj
Copy link

lenqj commented Sep 21, 2024

Could you add server logging getters or something like OnClientBan to prevent spam?

@astrolamb-gaming
Copy link

I don't think Teamspeak directly supplies an event that fires when a client is banned (which is why this api wrappe doesn't have one). I'm not exactly sure what you're hoping do do with that, but you could use ClientLeaveEvent. When it fires, call TS3Api#getBans(). You'd have to track what clients are on the server, since iirc ClientLeaveEvent doesn't include the data about the client that left, but then you could check the ban list with the client that left, and do whatever you would do with an OnBan event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants