Set args.Result to 0 in PlayerAnnounce hook
In
8204e2b3f9,
`PlayerAnnounceResult` was introduced, replacing `HookResult`, which changed
the result for `PlayerAnnounce` to a byte called `PlayerAnnounceResult`.
There are two options, `SendToPlayer` and `WriteToConsole`, set to 1 and 2
respectively. Because TShock handles this, we're setting it to 0, i.e.,
don't notify anybody.
This commit is contained in:
parent
acde508c53
commit
44034c7649
1 changed files with 1 additions and 1 deletions
|
|
@ -254,7 +254,7 @@ namespace TShockAPI
|
|||
OTAPI.Hooks.NetMessage.PlayerAnnounce += (sender, args) =>
|
||||
{
|
||||
//TShock handles this
|
||||
args.Result = OTAPI.HookResult.Cancel;
|
||||
args.Result = 0;
|
||||
};
|
||||
// if sqlite.interop cannot be found, try and search the runtimes folder. this usually happens when debugging tsapi
|
||||
// since it does not have the dependency installed directly
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue