summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/ondeath.lua
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-08-13 18:55:46 +0200
committerAlexander Harkness <bearbin@gmail.com>2013-08-13 18:55:46 +0200
commitc52e0e81ea1584e37359ff9e77b00c3e35045ced (patch)
treeb784106b72e245fba95350262d1a394c031a84df /MCServer/Plugins/Core/ondeath.lua
parentMerge pull request #84 from tonibm19/patch-2 (diff)
downloadcuberite-c52e0e81ea1584e37359ff9e77b00c3e35045ced.tar
cuberite-c52e0e81ea1584e37359ff9e77b00c3e35045ced.tar.gz
cuberite-c52e0e81ea1584e37359ff9e77b00c3e35045ced.tar.bz2
cuberite-c52e0e81ea1584e37359ff9e77b00c3e35045ced.tar.lz
cuberite-c52e0e81ea1584e37359ff9e77b00c3e35045ced.tar.xz
cuberite-c52e0e81ea1584e37359ff9e77b00c3e35045ced.tar.zst
cuberite-c52e0e81ea1584e37359ff9e77b00c3e35045ced.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