mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 12:31:41 +09:00
Fix typos in descriptions of home commands (#40)
This commit is contained in:
committed by
Cooldude2606
parent
60c0166239
commit
033d87e4fe
@@ -14,21 +14,21 @@ local function _homes(reset)
|
|||||||
return global.addons.homes
|
return global.addons.homes
|
||||||
end
|
end
|
||||||
|
|
||||||
commands.add_command('set-home', 'Set Your Home Possition', {}, function(event,args)
|
commands.add_command('set-home', 'Set your home position', {}, function(event,args)
|
||||||
local player = Game.get_player(event)
|
local player = Game.get_player(event)
|
||||||
if not _homes()[player.index] then _homes()[player.index] = {player.force.get_spawn_position(player.surface),player.force.get_spawn_position(player.surface)} end
|
if not _homes()[player.index] then _homes()[player.index] = {player.force.get_spawn_position(player.surface),player.force.get_spawn_position(player.surface)} end
|
||||||
_homes()[player.index][1] = {math.floor(player.position.x),math.floor(player.position.y)}
|
_homes()[player.index][1] = {math.floor(player.position.x),math.floor(player.position.y)}
|
||||||
player_return('Home set at: ('..math.floor(player.position.x)..','..math.floor(player.position.y)..')')
|
player_return('Home set at: ('..math.floor(player.position.x)..','..math.floor(player.position.y)..')')
|
||||||
end)
|
end)
|
||||||
|
|
||||||
commands.add_command('home', 'Goto you home possition', {}, function(event,args)
|
commands.add_command('home', 'Go to you home position', {}, function(event,args)
|
||||||
local player = Game.get_player(event)
|
local player = Game.get_player(event)
|
||||||
if not _homes()[player.index] then _homes()[player.index] = {player.force.get_spawn_position(player.surface),player.force.get_spawn_position(player.surface)} end
|
if not _homes()[player.index] then _homes()[player.index] = {player.force.get_spawn_position(player.surface),player.force.get_spawn_position(player.surface)} end
|
||||||
_homes()[player.index][2] = {math.floor(player.position.x),math.floor(player.position.y)}
|
_homes()[player.index][2] = {math.floor(player.position.x),math.floor(player.position.y)}
|
||||||
player.teleport(player.surface.find_non_colliding_position('player',_homes()[player.index][1],32,1),player.surface)
|
player.teleport(player.surface.find_non_colliding_position('player',_homes()[player.index][1],32,1),player.surface)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
commands.add_command('return', 'Goto where you were before using /home', {}, function(event,args)
|
commands.add_command('return', 'Go to where you were before using /home', {}, function(event,args)
|
||||||
local player = Game.get_player(event)
|
local player = Game.get_player(event)
|
||||||
if not _homes()[player.index] then _homes()[player.index] = {player.force.get_spawn_position(player.surface),player.force.get_spawn_position(player.surface)} end
|
if not _homes()[player.index] then _homes()[player.index] = {player.force.get_spawn_position(player.surface),player.force.get_spawn_position(player.surface)} end
|
||||||
local _temp = {math.floor(player.position.x),math.floor(player.position.y)}
|
local _temp = {math.floor(player.position.x),math.floor(player.position.y)}
|
||||||
|
|||||||
Reference in New Issue
Block a user