forked from space-wizards/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make webhook looks more better, fix small bug with banning player tha…
…t not on server
- Loading branch information
Showing
5 changed files
with
172 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
using Content.Shared.Database; | ||
|
||
namespace Content.Shared.GameTicking; | ||
|
||
public sealed class BanEvent : EntityEventArgs | ||
{ | ||
public string Username { get; } | ||
public DateTimeOffset? Expires { get; } | ||
public string Reason { get; } | ||
public NoteSeverity Severity { get; } | ||
public string AdminUsername { get; } | ||
|
||
|
||
public BanEvent(string username, DateTimeOffset? expires, string reason) | ||
public BanEvent(string username, DateTimeOffset? expires, string reason, NoteSeverity severity, string adminusername) | ||
{ | ||
Username = username; | ||
Expires = expires; | ||
Reason = reason; | ||
Severity = severity; | ||
AdminUsername = adminusername; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters