Pryaxis / TSAPI

🛠🌳 The TShock Scaffold API enables developers to build plugins that hook directly into the Terraria game engine.
http://tshock.co/
GNU General Public License v3.0
109 stars 66 forks source link

`ServerLeave` is not being invoked on `otapi3` #204

Closed drunderscore closed 2 years ago

drunderscore commented 2 years ago

Specifically tested on af21743, the ServerApi.Hooks.ServerLeave does not seem to be invoked.

Example:

ServerApi.Hooks.ServerLeave.Register(this, args =>
{
    Console.WriteLine($"{args.Who} left!");
});
drunderscore commented 2 years ago

Further discussed here: https://discord.com/channels/479657350043664384/711282444933791774/960146508974546944

drunderscore commented 2 years ago

This has already been fixed.