-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e99030b
commit 5ce272a
Showing
2 changed files
with
13 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- Implements the OnKilling hook handler that effectively implements the hardcore mode of the server | ||
|
||
-- If the server is in hardcore mode, bans the killed player | ||
function OnKilling(Victim, Killer) | ||
if (Victim:IsPlayer()) then | ||
if (cRoot:Get():GetServer():IsHardcore()) then | ||
local Reason = "Killed in hardcore mode" | ||
|
||
AddPlayerToBanlist(Victim:GetName(), Reason, "Server-Core") | ||
KickPlayer(Victim:GetName(), Reason) | ||
end | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.