Bug de variável areas corrigido

master
BrunoMine 2016-08-03 12:00:23 -03:00 committed by GitHub
parent 5d3deb9218
commit d873b7974d
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
-- Proteger uma area
gestor.proteger_area = function(name, PlayerName, AreaName, pos1, pos2, silencio)
if not tostring(PlayerName) or not tostring(AreaName) then return "Faltam argumentos ou estao incorretos" end
if not areas or not area.add then return "Faltou mod areas" end
if not areas or not areas.add then return "Faltou mod areas" end
local param = tostring(PlayerName).." "..tostring(AreaName)
local found, _, ownername, areaname = param:find('^([^ ]+) (.+)$')