|
13 | 13 | --]] ------------------------------------------------------
|
14 | 14 |
|
15 | 15 | Plugin = {
|
16 |
| - version = "2.61", |
17 |
| - numver = 261, |
| 16 | + version = "2.62", |
| 17 | + numver = 262, |
18 | 18 | apiver = 200,
|
19 | 19 | minLXL = {0,5,12},
|
20 | 20 | }
|
@@ -502,6 +502,11 @@ ConfigReader = {
|
502 | 502 | this.land.bought.three_dimension.calculate = "{square}*8+{height}*20"
|
503 | 503 | this.land.bought.two_dimension.calculate = "{square}*25"
|
504 | 504 | end
|
| 505 | + if this.version < 262 then |
| 506 | + if type(this.land.bought.square_range)~='table' then |
| 507 | + this.land.bought.square_range = {4,50000} |
| 508 | + end |
| 509 | + end |
505 | 510 | --- Rtn
|
506 | 511 | return true
|
507 | 512 | end,
|
@@ -3030,7 +3035,7 @@ function RegisterCommands()
|
3030 | 3035 | end)
|
3031 | 3036 | mc.regPlayerCmd(MainCmd..' buy',_Tr('command.land_buy'),function (player,args)
|
3032 | 3037 | local xuid = player.xuid
|
3033 |
| - if MEM[xuid].newLand==nil then |
| 3038 | + if MEM[xuid].newLand==nil or MEM[xuid].newLand.range==nil then |
3034 | 3039 | SendText(player,_Tr('talk.invalidaction'))
|
3035 | 3040 | return
|
3036 | 3041 | end
|
@@ -3107,7 +3112,7 @@ function RegisterCommands()
|
3107 | 3112 | end)
|
3108 | 3113 | mc.regPlayerCmd(MainCmd..' ok',_Tr('command.land_ok'),function (player,args)
|
3109 | 3114 | local xuid = player.xuid
|
3110 |
| - if MEM[xuid].reselectLand == nil then |
| 3115 | + if MEM[xuid].reselectLand==nil or MEM[xuid].reselectLand.range==nil then |
3111 | 3116 | SendText(player,_Tr('talk.invalidaction'))
|
3112 | 3117 | return
|
3113 | 3118 | end
|
@@ -4158,7 +4163,7 @@ mc.listen('onServerStarted',function()
|
4158 | 4163 | catch
|
4159 | 4164 | {
|
4160 | 4165 | function (err)
|
4161 |
| - log(err) |
| 4166 | + WARN(err) |
4162 | 4167 | ERROR('Something wrong when load data, plugin closed.')
|
4163 | 4168 | Plugin.Unload()
|
4164 | 4169 | end
|
|
0 commit comments