Skip to content

Commit

Permalink
commands fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cresterienvogel committed Dec 20, 2022
1 parent c8da562 commit 3872b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/xppp/server/cmds.lua
Expand Up @@ -3,7 +3,7 @@
]]

concommand.Add("xppc_clear_disconnected", function(pl)
if not pl:IsAdmin() then
if IsValid(pl) and not pl:IsAdmin() then
return
end

Expand All @@ -24,7 +24,7 @@ end)
]]

concommand.Add("xppc_clear_all", function(pl)
if not pl:IsAdmin() then
if IsValid(pl) and not pl:IsAdmin() then
return
end

Expand Down

0 comments on commit 3872b17

Please sign in to comment.