Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Commit 0f8614b

Browse files
committed
fix bugs, try to release 2.82
1 parent b66634c commit 0f8614b

File tree

5 files changed

+71
-29
lines changed

5 files changed

+71
-29
lines changed

TODO.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
> **2.82**
2-
- [ ] 在含水方块放水
32
- [x] 管理员领地管理器搜索后打开的领地错误
4-
- [ ] 冲突领地检测没有提示冲突坐标,领地名称未显示
5-
- [ ] LandInfo 领地名称未显示
6-
- [ ] Event:Before - onCreate 回传无mRange
7-
- [ ] schedule随机性失效?
3+
- [x] 冲突领地检测没有提示冲突坐标,领地名称未显示
4+
- [x] Event:Before - onCreate 回传无mRange
85

96
> ILAPI 示例插件计划
107
- [ ] Land Edge Shower

iland-core.lua

+38-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Plugin = {
1616
Version = {
1717
major = 2,
1818
minor = 8,
19-
revision = 1,
19+
revision = 2,
2020
toString = function()
2121
local ver = Plugin.Version
2222
return tostring(ver.major)..'.'..tostring(ver.minor*10 + ver.revision)
@@ -1463,10 +1463,30 @@ Land = {
14631463
IsCollision = function(AABB,ignoreList)
14641464
ignoreList = ignoreList or {}
14651465
local ignores = Array.ToKeyMap(ignoreList)
1466+
1467+
--- Check 1/2.
1468+
local edge = Cube.GetEdge(AABB)
1469+
for n,pos in pairs(edge) do
1470+
Pos.SetDimId(pos,AABB.dimid)
1471+
local Id = Land.Query.Pos(pos)
1472+
if Id and not ignores[Id] then
1473+
return {
1474+
status = false,
1475+
id = Id,
1476+
info = _Tr('gui.rangecheck.pos','<a>',Pos.ToString(pos))
1477+
}
1478+
end
1479+
end
1480+
1481+
--- Check 2/2.
14661482
local lands = Land.Query.Area(AABB)
14671483
for i,landId in pairs(lands) do
14681484
if not ignores[landId] then
1469-
return { status = false, id = landId }
1485+
return {
1486+
status = false,
1487+
id = landId,
1488+
info = _Tr('gui.rangecheck.included')
1489+
}
14701490
end
14711491
end
14721492
return { status = true }
@@ -2981,12 +3001,22 @@ RangeSelector = {
29813001
local sp = cfg.land.min_space
29823002
local chkNearby = Land.Util.IsCollision(Cube.Create(Pos.Add(mem.posA,sp),Pos.Reduce(mem.posB,sp),dimid),chkIgnores)
29833003
if not chkNearby.status then
2984-
SendText(player,_Tr('title.rangeselector.fail.space','<a>',chkNearby.id))
3004+
player:sendModalForm(
3005+
_Tr('gui.rangecheck.title'),
3006+
_Tr('gui.rangecheck.msg','<a>',Land.Options.Nickname.get(chkNearby.id,3),'<b>',chkNearby.info),
3007+
_Tr('gui.general.iknow'),_Tr('gui.general.close'),
3008+
Callback.Form.NULL
3009+
)
29853010
else
29863011
passed = true
29873012
end
29883013
else
2989-
SendText(player,_Tr('title.rangeselector.fail.collision','<a>',chkColl.id))
3014+
player:sendModalForm(
3015+
_Tr('gui.rangecheck.title'),
3016+
_Tr('gui.rangecheck.msg','<a>',Land.Options.Nickname.get(chkColl.id,3),'<b>',chkColl.info),
3017+
_Tr('gui.general.iknow'),_Tr('gui.general.close'),
3018+
Callback.Form.NULL
3019+
)
29903020
end
29913021
end
29923022

@@ -3280,6 +3310,10 @@ Pos = {
32803310
if A.y>B.y then A.y,B.y = B.y,A.y end
32813311
if A.z>B.z then A.z,B.z = B.z,A.z end
32823312
return A,B
3313+
end,
3314+
SetDimId = function(pos,dimid)
3315+
pos.dimid = dimid
3316+
return pos
32833317
end
32843318
}
32853319

iland/lang/en_US.json

+16-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"VERSION": 281,
2+
"VERSION": 282,
33

44
"gui.land.title": "Land v<a>",
55
"gui.oplandmgr.trsland.title": "Forced transfer of land",
@@ -173,7 +173,7 @@
173173
"gui.buyland.button.confirm": "Confirm Purchase",
174174
"gui.buyland.button.close": "Staging",
175175
"gui.buyland.button.cancel": "Cancel order",
176-
"gui.delland.content": "Are you sure you want to delete your realm?\nIf so, you will receive a <a><b>refund. Your realm will then lose its protection and the data will be deleted immediately. ",
176+
"gui.delland.content": "Are you sure you want to delete your realm?\\nIf so, you will receive a <a><b>refund. Your realm will then lose its protection and the data will be deleted immediately. ",
177177
"gui.landdescribe.tip": "Land notes are sent to other visitors when they come to your land.\n\nSupported variables:\n$visitor = visitor name\n$n = newline",
178178
"gui.landtrust.tip": "Select operation mode",
179179
"gui.landtrust.addtrust": "Add trusted player",
@@ -184,9 +184,9 @@
184184
"gui.landtrust.rmsuccess": "Removed from trust list",
185185
"gui.landtrust.trusted": "§lCurrently trusted:§r ",
186186
"gui.landtag.tip": "Land Nickname helps you to distinguish between multiple lands without changing the original lands configuration",
187-
"gui.landtransfer.tip": "After the land transfer is completed, all permissions will be transferred, you are no longer the owner of the land, but all the configuration of the original land will not be changed.",
187+
"gui.landtransfer.tip": "After the land transfer is completed, all permissions will be transferred, you are no longer the owner of the land, but all configurations of the original land will not be changed.",
188188
"gui.reselectland.title": "Reselect Land Range",
189-
"gui.reselectland.tip": "Re-enclosure is to completely reselect the range of the land, not directly expanding/reducing the range of the existing land.\\nThe price of reselectland is calculated as\\\"New range price — old range Value \\\", continue?","gui.reselectland.content": "Original territory range (<a>) value: <b>,\\nCurrent territory range (<c>) value: <d>,\\nwill <e>you<f ><g>.",
189+
"gui.reselectland.tip": "Re-enclosure is to completely reselect the scope of the territory, not directly expanding/reducing the scope of the existing territory.\\nThe price calculation method of reselectland is\\\"New scope price — old scope Value \\\", continue?","gui.reselectland.content": "Original territory range (<a>) value: <b>,\\nCurrent territory range (<c>) value: <d>,\\nwill <e>you<f ><g>.",
190190
"gui.reselectland.refund": "Refund to",
191191
"gui.reselectland.pay": "Charge",
192192

@@ -251,14 +251,17 @@
251251
"title.rangeselector.fail.toobig": "The enclosed territory is too big, please re-enclose it.\n",
252252
"title.rangeselector.fail.toosmall": "The enclosed territory is too small, please re-enclosure.\n",
253253
"title.rangeselector.fail.toolow": "The enclosed territory is too low, please re-enclosure\n",
254-
"title.rangeselector.fail.collision": "The enclosure range conflicts with <a>, please re-enclave.\n",
255-
"title.rangeselector.fail.space": "The enclosure range is too close to <a>, please re-enclosure.\n",
256254
"title.rangeselector.fail.height": "Not a valid height, please re-enclosure",
257255
"title.rangeselector.largeparticle": "The territory is large, particle effects have been turned off to avoid lag",
258256
"title.rangeselector.pointed": "Point <a> selected: <b> (<c>, <d>, <e>)",
259257
"title.selectland.complete1": "Enclosure completed",
260258
"title.selectland.complete2": "Please hold <a>\nUse /<b> or click any square again to create an order.",
261259

260+
"gui.rangecheck.included": "included",
261+
"gui.rangecheck.pos": "Conflict at <a>",
262+
"gui.rangecheck.title": "There was a problem",
263+
"gui.rangecheck.msg": "The selected range conflicts with or is too close to §l<a>§r.\n\nDetails: <b>",
264+
262265
"title.land.nolicense": "Please use /land new request to create a new territory first",
263266
"title.getlicense.alreadyexists": "Do not repeat the request\n",
264267
"title.getlicense.succeed": "Requested to create a new territory\n",
@@ -286,8 +289,8 @@
286289
"title.landsign.visitorbuttom": "This is <a>'s territory",
287290
"title.landtp.fail.noland": "You need to stand on the ground first",
288291
"title.landtp.fail.notowner": "You are not the owner of this land",
289-
"title.landtp.removed": "Removed teleportation point for this land",
290-
"title.landtp.success":"Successful delivery",
292+
"title.landtp.removed": "Removed teleportation point for this territory",
293+
"title.landtp.success": "Successful transfer",
291294

292295
"sign.listener.ownertitle": "<a>",
293296
"sign.listener.ownersubtitle": "Welcome back",
@@ -355,7 +358,7 @@
355358
"console.loading.land.broken": "The land data file is broken.",
356359
"console.loading.relationship.notfound": "The relationship data (relationship.json) does not exist, creating...",
357360
"console.loading.relationship.xuidinvalid": "Invalid XUID (<a>), skip loading...",
358-
"console.loading.relationship.xuidinvalidtip": "Some players were not loaded because their XUIDs were not in the database. Reloading these players could fix this.",
361+
"console.loading.relationship.xuidinvalidtip": "Some players were not loaded because their XUIDs were not in the database. Reloading these players could fix the problem.",
359362
"console.loading.relationship.broken": "The territory relationship data file is broken.",
360363
"console.loading.map.load": "Building the tables needed to run...",
361364
"console.loading.map.complete": "Complete, using memory: <a>M.",
@@ -398,7 +401,8 @@
398401
"console.getonline.failbyver": "Unparseable version of cloud info file (<a>), your iLand may be out of date.",
399402
"console.getonline.failbybroken": "Unable to parse cloud information, JSON parsing failed.",
400403

401-
"console.languages.sign": "This server is using language <a>, version: <b>.","console.languages.list.count": "Installed languages: <a>",
404+
"console.languages.sign": "This server is using language <a>, version: <b>. ",
405+
"console.languages.list.count": "Installed languages: <a>",
402406
"console.languages.list-online.wait": "Please wait, getting language warehouse data...",
403407
"console.languages.official": "Official languages:",
404408
"console.languages.3rd": "Languages ​​provided by third parties:",
@@ -409,9 +413,9 @@
409413
"console.languages.install.fail.verify": "Error verifying language <a>, MD5 mismatch, installation process interrupted.",
410414
"console.languages.install.fail.version": "The language <a> being installed does not match the version of iLand currently running and the installation process has been interrupted.",
411415
"console.languages.install.fail.broken": "The language pack <a> being installed is broken and the installation process was interrupted.",
412-
"console.languages.install.succeed": "Language pack <a> installed successfully! Please use \"land language set <a>\" to set the language to use.",
416+
"console.languages.install.succeed": "Language pack <a> installed successfully! Please use \"land language set <a>\" to set the language used.",
413417
"console.languages.update.alreadylatest": "This language version is up to date and does not require an upgrade.",
414-
"console.languages.update.notfound": "Language pack <a> not found, try installing this language with \"land language install <a>\".",
418+
"console.languages.update.notfound": "Language pack <a> not found, please try installing this language with \"land language install <a>\".",
415419
"console.languages.update.notfoundonline": "Language <a> was not found on the server, maybe it is not yet included, the update is aborted.",
416420
"console.languages.update.succeed": "Language pack <a> updated successfully!",
417421
"console.languages.update.completed": "Updated <a> language packs.",

iland/lang/zh_CN.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"VERSION": 281,
2+
"VERSION": 282,
33
"#1": "zh_CN 标准汉语翻译贡献者:RedbeanW",
44

55
"gui.land.title": "Land v<a>",
@@ -253,14 +253,17 @@
253253
"title.rangeselector.fail.toobig": "所圈领地太大,请重新圈地。\n",
254254
"title.rangeselector.fail.toosmall": "所圈领地太小,请重新圈地。\n",
255255
"title.rangeselector.fail.toolow": "所圈领地太低,请重新圈地\n",
256-
"title.rangeselector.fail.collision": "圈地范围与 <a> 存在冲突,请重新圈地。\n",
257-
"title.rangeselector.fail.space": "圈地范围与 <a> 距离太近,请重新圈地。\n",
258256
"title.rangeselector.fail.height": "不是有效的高度,请重新圈地",
259257
"title.rangeselector.largeparticle": "领地范围较大,为避免卡顿已关闭粒子特效",
260258
"title.rangeselector.pointed": "点 <a> 已选定:<b> (<c>, <d>, <e>)",
261259
"title.selectland.complete1": "圈地完成",
262260
"title.selectland.complete2": "请手持 <a>\n使用 /<b> 或再次点击任意方块以创建订单。",
263261

262+
"gui.rangecheck.included": "包含",
263+
"gui.rangecheck.pos": "在 <a> 冲突",
264+
"gui.rangecheck.title": "出现问题",
265+
"gui.rangecheck.msg": "所选范围与 §l<a>§r 存在冲突或距离太近。\n\n详细信息: <b>",
266+
264267
"title.land.nolicense": "请先使用 /land new 请求创建新领地",
265268
"title.getlicense.alreadyexists": "请勿重复请求\n",
266269
"title.getlicense.succeed": "已请求新建领地\n",

iland/lang/zh_TW.json

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"VERSION": 281,
2+
"VERSION": 282,
33

44
"gui.land.title": "Land v<a>",
55
"gui.oplandmgr.trsland.title": "強製過戶領地",
@@ -251,14 +251,17 @@
251251
"title.rangeselector.fail.toobig": "所圈領地太大,請重新圈地。\n",
252252
"title.rangeselector.fail.toosmall": "所圈領地太小,請重新圈地。\n",
253253
"title.rangeselector.fail.toolow": "所圈領地太低,請重新圈地\n",
254-
"title.rangeselector.fail.collision": "圈地範圍與 <a> 存在衝突,請重新圈地。\n",
255-
"title.rangeselector.fail.space": "圈地範圍與 <a> 距離太近,請重新圈地。\n",
256254
"title.rangeselector.fail.height": "不是有效的高度,請重新圈地",
257255
"title.rangeselector.largeparticle": "領地範圍較大,為避免卡頓已關閉粒子特效",
258256
"title.rangeselector.pointed": "點 <a> 已選定:<b> (<c>, <d>, <e>)",
259257
"title.selectland.complete1": "圈地完成",
260258
"title.selectland.complete2": "請手持 <a>\n使用 /<b> 或再次點擊任意方塊以創建訂單。",
261259

260+
"gui.rangecheck.included": "包含",
261+
"gui.rangecheck.pos": "在 <a> 衝突",
262+
"gui.rangecheck.title": "出現問題",
263+
"gui.rangecheck.msg": "所選範圍與 §l<a>§r 存在衝突或距離太近。\n\n詳細信息: <b>",
264+
262265
"title.land.nolicense": "請先使用 /land new 請求創建新領地",
263266
"title.getlicense.alreadyexists": "請勿重複請求\n",
264267
"title.getlicense.succeed": "已請求新建領地\n",
@@ -287,7 +290,7 @@
287290
"title.landtp.fail.noland": "你需要先站在領地上一點",
288291
"title.landtp.fail.notowner": "你不是這塊領地的主人",
289292
"title.landtp.removed": "已移除這塊領地的傳送點",
290-
"title.landtp.success":"傳送成功",
293+
"title.landtp.success": "傳送成功",
291294

292295
"sign.listener.ownertitle": "<a>",
293296
"sign.listener.ownersubtitle": "歡迎回來",
@@ -398,7 +401,8 @@
398401
"console.getonline.failbyver": "無法解析的雲端信息文件版本(<a>),您的iLand可能已過時。",
399402
"console.getonline.failbybroken": "無法解析雲端信息,JSON解析失敗。",
400403

401-
"console.languages.sign": "此服務器正在使用 <a> 語言,版本為:<b>。","console.languages.list.count": "已安裝語言:<a> 個",
404+
"console.languages.sign": "此服務器正在使用 <a> 語言,版本為:<b>。 ",
405+
"console.languages.list.count": "已安裝語言:<a> 個",
402406
"console.languages.list-online.wait": "請稍等,正在獲取語言倉庫數據...",
403407
"console.languages.official": "官方提供的語言:",
404408
"console.languages.3rd": "第三方提供的語言:",

0 commit comments

Comments
 (0)