Skip to content

Commit

Permalink
Update commands.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
x2605 committed Aug 24, 2020
1 parent 6beaf76 commit d60dde9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tankpvp/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ end

--FFA 맵 초기화
Commands.reset_ffa = function(data)
local player = game.players[data.player_index]
local player = nil
if data.player_index then player = game.players[data.player_index] end
if player then
if not player.admin then player.print{"not_admin"} return end
Expand All @@ -79,7 +79,7 @@ end
--외치기 한글 자판
--"/s "를 한글상태에서 입력하면 "/ㄴ "로 나오는데 그냥 쓸 수 있게 해줌.
Commands.shout_korean = function(data)
local player = game.players[data.player_index]
local player = nil
if data.player_index then player = game.players[data.player_index] end
if not player then return end
local force = player.force
Expand Down

0 comments on commit d60dde9

Please sign in to comment.