1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

more stability changes

This commit is contained in:
RaidMax
2018-10-03 21:20:49 -05:00
parent ca9e20ebd3
commit a1dcc739b0
12 changed files with 108 additions and 32 deletions

View File

@ -25,7 +25,7 @@ namespace IW4MAdmin.Plugins.ProfanityDeterment
public Task OnEventAsync(GameEvent E, Server S)
{
if (!Settings.Configuration().EnableProfanityDeterment)
return Task.CompletedTask; ;
return Task.CompletedTask;
if (E.Type == GameEvent.EventType.Connect)
{
@ -50,7 +50,8 @@ namespace IW4MAdmin.Plugins.ProfanityDeterment
{
E.Origin.Kick(Settings.Configuration().ProfanityKickMessage, new Player()
{
ClientId = 1
ClientId = 1,
CurrentServer = E.Owner
});
};
}
@ -86,7 +87,8 @@ namespace IW4MAdmin.Plugins.ProfanityDeterment
{
clientProfanity.Client.Kick(Settings.Configuration().ProfanityKickMessage, new Player()
{
ClientId = 1
ClientId = 1,
CurrentServer = E.Owner
});
}
@ -96,7 +98,8 @@ namespace IW4MAdmin.Plugins.ProfanityDeterment
clientProfanity.Client.Warn(Settings.Configuration().ProfanityWarningMessage, new Player()
{
ClientId = 1
ClientId = 1,
CurrentServer = E.Owner
});
}
}