Skip to content

Commit

Permalink
chore(server/commands): remove unnecessary comments (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm committed Jul 8, 2024
1 parent aa639c9 commit 43b585a
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions server/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ local logger = require 'modules.logger'

GlobalState.PVPEnabled = config.server.pvp

-- Teleport
lib.addCommand('tp', {
help = locale('command.tp.help'),
params = {
Expand Down Expand Up @@ -52,8 +51,6 @@ lib.addCommand('togglepvp', {
GlobalState.PVPEnabled = config.server.pvp
end)

-- Permissions

lib.addCommand('addpermission', {
help = locale('command.addpermission.help'),
params = {
Expand Down Expand Up @@ -90,8 +87,6 @@ lib.addCommand('removepermission', {
RemovePermission(player.PlayerData.source, permission)
end)

-- Open & Close Server

lib.addCommand('openserver', {
help = locale('command.openserver.help'),
restricted = 'group.admin'
Expand Down Expand Up @@ -127,7 +122,7 @@ lib.addCommand('closeserver', {
config.server.closedReason = reason
for k in pairs(QBX.Players) do
if not IsPlayerAceAllowed(k --[[@as string]], config.server.whitelistPermission) then
DropPlayer(k, reason)
DropPlayer(k --[[@as string]], reason)
end
end

Expand All @@ -137,8 +132,6 @@ lib.addCommand('closeserver', {
end
end)

-- Vehicle

lib.addCommand('car', {
help = locale('command.car.help'),
params = {
Expand Down Expand Up @@ -193,8 +186,6 @@ lib.addCommand('dv', {
end
end)

-- Money

lib.addCommand('givemoney', {
help = locale('command.givemoney.help'),
params = {
Expand Down Expand Up @@ -231,7 +222,6 @@ lib.addCommand('setmoney', {
player.Functions.SetMoney(args[locale('command.setmoney.params.moneytype.name')], args[locale('command.setmoney.params.amount.name')])
end)

-- Job
lib.addCommand('job', {
help = locale('command.job.help')
}, function(source)
Expand All @@ -258,8 +248,6 @@ lib.addCommand('setjob', {
assert(success, json.encode(errorResult))
end)

--- ADMIN COMMAND

lib.addCommand('changejob', {
help = locale('command.changejob.help'),
params = {
Expand Down Expand Up @@ -315,8 +303,6 @@ lib.addCommand('removejob', {
assert(success, json.encode(errorResult))
end)

-- Gang

lib.addCommand('gang', {
help = locale('command.gang.help')
}, function(source)
Expand All @@ -343,8 +329,6 @@ lib.addCommand('setgang', {
assert(success, json.encode(errorResult))
end)

-- Out of Character Chat

lib.addCommand('ooc', {
help = locale('command.ooc.help')
}, function(source, args)
Expand Down Expand Up @@ -387,8 +371,6 @@ lib.addCommand('ooc', {
end
end)

-- Me command

lib.addCommand('me', {
help = locale('command.me.help'),
params = {
Expand All @@ -406,14 +388,10 @@ lib.addCommand('me', {
playerState:set('me', nil, true)
end)

-- ID command

lib.addCommand('id', {help = locale('info.check_id')}, function(source)
Notify(source, 'ID: ' .. source)
end)

-- Character commands

lib.addCommand('logout', {
help = locale('info.logout_command_help'),
restricted = 'group.admin',
Expand Down

0 comments on commit 43b585a

Please sign in to comment.