Skip to content

Commit

Permalink
Replace function DoPlayerDeath to PlayerDeath
Browse files Browse the repository at this point in the history
  • Loading branch information
tltneon committed Feb 22, 2016
1 parent 362fd5b commit f0aefdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/clearinv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ PLUGIN.author = "Neon"
PLUGIN.desc = "Removing all items from player's inventory when character was died."

if SERVER then
function PLUGIN:DoPlayerDeath(client)
function PLUGIN:PlayerDeath(client)
if client:getChar() then
for k, v in pairs(client:getChar():getInv():getItems()) do
v:remove()
Expand Down

0 comments on commit f0aefdc

Please sign in to comment.