diff --git a/.gitignore b/.gitignore index a731191..597ed5c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ async/* pl/* lua/iland/lang/* init.lua -sync.cmd \ No newline at end of file +sync.cmd +givecookie.lua \ No newline at end of file diff --git a/iland-core.lua b/iland-core.lua index e6f33b7..e4ea4d8 100644 --- a/iland-core.lua +++ b/iland-core.lua @@ -5,7 +5,7 @@ -- | || |__| (_| | | | | (_| | ~ License GPLv3 未经许可禁止商用 ~ -- |___|_____\__,_|_| |_|\__,_| ~ ------------------------------- ~ -- —————————————————————————————————————————————————————————————————— -local plugin_version = '2.0' +local plugin_version = '2.01' local langVer = 200 local minLLVer = 210613 local minAirVer = 101 @@ -1092,7 +1092,7 @@ function IL_CmdFunc(player,cmd) if opt[1] == MainCmd and opt[2]==nil then local ppos = AIR.pos2vec({Actor:getPos(player)}) local lid = ILAPI.PosGetLand(ppos) - if lid~=-1 then + if lid~=-1 and (ILAPI.GetOwner(lid)==xuid) then TRS_Form[player].landId=lid IL_FastMgr_GUI(player) else