Skip to content

Commit

Permalink
fix(server/commands): revert
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm committed Oct 27, 2024
1 parent dc9dcd6 commit b7f84f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ lib.addCommand('setjob', {
return
end

local success, errorResult = SetJob(source, args[locale('command.setjob.params.job.name')], args[locale('command.setjob.params.grade.name')] or 0)
local success, errorResult = player.Functions.SetJob(args[locale('command.setjob.params.job.name')], args[locale('command.setjob.params.grade.name')] or 0)
assert(success, json.encode(errorResult))
end)

Expand Down Expand Up @@ -327,7 +327,7 @@ lib.addCommand('setgang', {
return
end

local success, errorResult = SetGang(source, args[locale('command.setgang.params.gang.name')], args[locale('command.setgang.params.grade.name')] or 0)
local success, errorResult = player.Functions.SetGang(args[locale('command.setgang.params.gang.name')], args[locale('command.setgang.params.grade.name')] or 0)
assert(success, json.encode(errorResult))
end)

Expand Down

0 comments on commit b7f84f9

Please sign in to comment.