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

ServerAPI.Hooks.ServerLeave Never fires. #2948

Open
Zulvex opened this issue May 15, 2023 · 3 comments
Open

ServerAPI.Hooks.ServerLeave Never fires. #2948

Zulvex opened this issue May 15, 2023 · 3 comments

Comments

@Zulvex
Copy link

Zulvex commented May 15, 2023

  • TShock version: 5.2

Issue:
I have been making some plugins for TShock, and I noticed there wasn't a leave message, so I tried adding one, and the event: ServerAPI.Hooks.ServerLeave never fires. I decided to look into the TShock plugin code and there is a leave message that also never displays. I have tried just printing a general console message ignoring the args and it still never displays on a player disconnecting. But the world save still happens on player disconnect so I'm not sure if other code is saving the world on disconnect or what because I can never get the event to fire.

Reproduction steps (if applicable)?

Leave the game, and the leave message never displays nor does the event even fire.

My usage:
ServerApi.Hooks.ServerLeave.Register(this, OnPlayerLeave);
and
private void OnPlayerLeave(LeaveEventArgs args) { Console.WriteLine("OnPlayerLeave Activated!"); }

@Arthri
Copy link
Contributor

Arthri commented May 15, 2023

Is your server running on x32/x86/ARM32?

@Zulvex Zulvex closed this as completed May 15, 2023
@Zulvex Zulvex reopened this May 15, 2023
@Zulvex
Copy link
Author

Zulvex commented May 15, 2023

Oh sorry forgot to add that stuff, running it on Linux fedora ARM64

@PotatoCider
Copy link
Contributor

Is this bug still reproducible? I am unable to reproduce this bug on aarch64 (debian 11 bullseye, rpi) with latest dotnet sdk v6.0.423, TShock v5.2.0 release.

image

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

3 participants