mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-11 15:52:25 -05:00
Re added mask command
Prune confirms completion Findall display previous name confirmation message sent after kick tempban/ban confirmation wording changes players page is now paginated
This commit is contained in:
@ -112,23 +112,28 @@ namespace StatsPlugin
|
||||
})
|
||||
{ }
|
||||
|
||||
public override async Task ExecuteAsync(Event E)
|
||||
public override async Task ExecuteAsync(Event E)
|
||||
{
|
||||
int inactiveDays = 30;
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
inactiveDays = Int32.Parse(E.Data);
|
||||
if (inactiveDays < 1)
|
||||
throw new FormatException();
|
||||
if (E.Data.Length > 0)
|
||||
{
|
||||
inactiveDays = Int32.Parse(E.Data);
|
||||
if (inactiveDays < 1)
|
||||
throw new FormatException();
|
||||
}
|
||||
}
|
||||
|
||||
catch (FormatException)
|
||||
{
|
||||
await E.Origin.Tell("Invalid number of inactive days");
|
||||
await E.Origin.Tell("Invalid number of inactive days");
|
||||
return;
|
||||
}
|
||||
|
||||
E.Owner.Manager.GetClientDatabase().PruneAdmins(inactiveDays);
|
||||
await E.Origin.Tell("Pruned inactive privileged users");
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user