Fixed error with LuaPlayer.connected

This commit is contained in:
Cooldude2606
2018-10-25 18:11:50 +01:00
parent 2af203a0b6
commit 4fe7ec3c0a
3 changed files with 4 additions and 4 deletions

View File

@@ -78,7 +78,7 @@ commands.validate = {
['player-online']=function(value,event)
local player,err = commands.validate['player'](value)
if err then return commands.error(err) end
local rtn = player.conected and player or nil
local rtn = player.connected and player or nil
if not rtn then return commands.error{'ExpGamingCore_Command.error-player-online'} end return rtn end,
['player-alive']=function(value,event)
local player,err = commands.validate['player-online'](value)

View File

@@ -49,7 +49,7 @@ function left.add(obj)
return obj
end
--- This is used to update all the guis of conected players, good idea to use our thread system as it as nested for loops
--- This is used to update all the guis of connected players, good idea to use our thread system as it as nested for loops
-- @usage Gui.left.update()
-- @tparam[opt] string frame this is the name of a frame if you only want to update one
-- @param[opt] players the player to update for, if not given all players are updated, can be one player