Added basic framework for allowing for ban durations and banning admin.
Added BanningUser, Date(of ban), and Expiration to the db On join, Expiration is checked, if ban is expired we remove it and the user is allowed on. When running the ban command, your UAN is used as the banning user, and the date is that moment, with no expiration. #531
This commit is contained in:
parent
222042cc4d
commit
856def83b3
6 changed files with 75 additions and 22 deletions
|
|
@ -404,7 +404,7 @@ namespace TShockAPI
|
|||
|
||||
try
|
||||
{
|
||||
TShock.Bans.AddBan(ip, name, parameters["reason"], true);
|
||||
TShock.Bans.AddBan(ip, name, parameters["reason"], true, tokenData.Username);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue