Added missing e.Handleds
This commit is contained in:
parent
196edcc3bf
commit
a375165db4
1 changed files with 21 additions and 18 deletions
|
|
@ -294,6 +294,7 @@ namespace TShockAPI
|
||||||
Tools.Kick(ply, "Abnormal life increase");
|
Tools.Kick(ply, "Abnormal life increase");
|
||||||
Tools.Broadcast(playerName + " was " + (ConfigurationManager.kickCheater ? "banned" : "kicked") +
|
Tools.Broadcast(playerName + " was " + (ConfigurationManager.kickCheater ? "banned" : "kicked") +
|
||||||
" because they gained an abnormal amount of health.");
|
" because they gained an abnormal amount of health.");
|
||||||
|
e.Handled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -326,6 +327,7 @@ namespace TShockAPI
|
||||||
Tools.Kick(ply, "Abnormal mana increase");
|
Tools.Kick(ply, "Abnormal mana increase");
|
||||||
Tools.Broadcast(playerName + " was " + (ConfigurationManager.kickCheater ? "banned" : "kicked") +
|
Tools.Broadcast(playerName + " was " + (ConfigurationManager.kickCheater ? "banned" : "kicked") +
|
||||||
" because they gained an abnormal amount of mana.");
|
" because they gained an abnormal amount of mana.");
|
||||||
|
e.Handled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -346,6 +348,7 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
Log.Info(Tools.FindPlayer(e.Msg.whoAmI) + " was kicked for trying to fake chat as someone else.");
|
Log.Info(Tools.FindPlayer(e.Msg.whoAmI) + " was kicked for trying to fake chat as someone else.");
|
||||||
Ban(ply, "Faking Chat");
|
Ban(ply, "Faking Chat");
|
||||||
|
e.Handled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue