summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/ondeath.lua
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-14 13:03:13 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-14 13:03:13 +0200
commit77468f87b75204ed55147761290bb3450ddb1436 (patch)
treee1ca5f65763b7835d682246a613419277e8f22d1 /MCServer/Plugins/Core/ondeath.lua
parentAlpha sorted PistonBreakable list (diff)
parentPartially fixed tonibm19's mess. (diff)
downloadcuberite-77468f87b75204ed55147761290bb3450ddb1436.tar
cuberite-77468f87b75204ed55147761290bb3450ddb1436.tar.gz
cuberite-77468f87b75204ed55147761290bb3450ddb1436.tar.bz2
cuberite-77468f87b75204ed55147761290bb3450ddb1436.tar.lz
cuberite-77468f87b75204ed55147761290bb3450ddb1436.tar.xz
cuberite-77468f87b75204ed55147761290bb3450ddb1436.tar.zst
cuberite-77468f87b75204ed55147761290bb3450ddb1436.zip
Diffstat (limited to 'MCServer/Plugins/Core/ondeath.lua')
-rw-r--r--MCServer/Plugins/Core/ondeath.lua11
1 files changed, 1 insertions, 10 deletions
diff --git a/MCServer/Plugins/Core/ondeath.lua b/MCServer/Plugins/Core/ondeath.lua
index a5f8f6745..4cb62f6a8 100644
--- a/MCServer/Plugins/Core/ondeath.lua
+++ b/MCServer/Plugins/Core/ondeath.lua
@@ -44,7 +44,7 @@ function OnKilling(Victim, Killer)
elseif Killer:IsA("cMagmacube") then
Server:SendMessage( cChatColor.Red .. "[FATALITY] " .. cChatColor.White .. Victim:GetName() .. " was incinerated by a magmacube")
elseif Killer:IsA("cWolf") then
- Server:SendMessage( cChatColor.Red .. "[FATALITY] " .. cChatColor.White .. Victim:GetName() .. " was savaged by a wolf")
+ Server:SendMessage( cChatColor.Red .. "[FATALITY] " .. cChatColor.White .. Victim:GetName() .. " was savaged by a wolf")
end
CheckHardcore(Victim)
return false
@@ -54,12 +54,3 @@ function OnKilling(Victim, Killer)
CheckHardcore(Victim)
end
end
-
-function CheckHardcore(Victim)
- if HardCore == "true" then
- if Victim:IsPlayer() == true then
- local KilledPlayer = tolua.cast(Victim, "cPlayer")
- BanPlayer(KilledPlayer:GetName(), "You died, haha. Good game, bro.")
- end
- end
-end \ No newline at end of file