mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-21 20:01:18 +00:00
Fixed setlevel in add-on mode returning error caused by 329eb3a
This commit is contained in:
parent
acf0b698e7
commit
5840c0a1f8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue