Add event for offline bans
KarlOfDuty opened this issue · 6 comments
The BanIssued event fulfills that function.
https://github.com/northwood-studios/NwPluginAPI/blob/master/NwPluginAPI/Enums/ServerEventType.cs#L856
Great, thanks!
It doesn't seem like the BanIssued event has any information about it being an online or offline ban, so I think wither that should be added or a seperate event matching PlayerBanned for only offline bans should be added. Otherwise I would have it trigger twice for all online bans as I still need the player information in PlayerBanned for that event.
How about you see if there is someone online with that id instead
Usually when someone is banned they are no longer online.
If the banning event happens before it is enforced (so It can be cancelled) they typically are still online