Fixed setlevel in add-on mode returning error caused by 329eb3a

This commit is contained in:
Timo Smit 2017-02-02 16:27:28 +01:00
parent acf0b698e7
commit 5840c0a1f8

View file

@ -40,14 +40,14 @@ function commandSetLevel(clientId, command, victim, level)
return false
end
level = tonumber(level) or 0
if auth.getPlayerLevel(cmdClient) > auth.getPlayerLevel(clientId) then
return false
elseif level > auth.getPlayerLevel(clientId) then
return false
end
level = tonumber(level) or 0
admin.setPlayerLevel(cmdClient, level, clientId)
return false