@@ -357,7 +357,7 @@ Map = {
357
357
' minecraft:dark_oak_fence_gate' ,' minecraft:crimson_fence_gate' ,' minecraft:warped_fence_gate' ,
358
358
' minecraft:wooden_door' ,' minecraft:spruce_door' ,' minecraft:birch_door' ,' minecraft:jungle_door' ,
359
359
' minecraft:acacia_door' ,' minecraft:dark_oak_door' ,' minecraft:crimson_door' ,' minecraft:warped_door' ,
360
- ' minecraft:dragon_egg'
360
+ ' minecraft:dragon_egg' , ' minecraft:flower_pot '
361
361
}),
362
362
-- # onBlockInteracted
363
363
[1 ] = Array .ToKeyMap ({
@@ -1035,7 +1035,8 @@ DataStorage = {
1035
1035
eat = false ,
1036
1036
allow_throw_potion = false ,
1037
1037
allow_ride_entity = false ,
1038
- allow_ride_trans = false
1038
+ allow_ride_trans = false ,
1039
+ edit_flower_pot = false
1039
1040
}
1040
1041
},
1041
1042
Create = function ()
@@ -1799,9 +1800,10 @@ Land = {
1799
1800
assert (Land .IDManager .IsVaild (landId ),Land .API .Helper .ErrMsg [2 ])
1800
1801
return Land .RelationShip .Owner .check (landId ,xuid )
1801
1802
end ,
1802
- [' IsLandOperator' ] = function (xuid )
1803
- assert (Land .API .Helper .CheckNilArgument (xuid ),Land .API .Helper .ErrMsg [1 ])
1804
- return Land .RelationShip .Operator .check (xuid )
1803
+ [' IsLandOperator' ] = function (landId ,xuid )
1804
+ assert (Land .API .Helper .CheckNilArgument (landId ,xuid ),Land .API .Helper .ErrMsg [1 ])
1805
+ assert (Land .IDManager .IsVaild (landId ,landId ),Land .API .Helper .ErrMsg [2 ])
1806
+ return Land .RelationShip .Operator .check (landId ,xuid )
1805
1807
end ,
1806
1808
[' GetAllTrustedLand' ] = function (xuid )
1807
1809
assert (Land .API .Helper .CheckNilArgument (xuid ),Land .API .Helper .ErrMsg [1 ])
@@ -2429,6 +2431,7 @@ OpenGUI = {
2429
2431
Form :addSwitch (_Tr (' gui.landmgr.landperm.other_options.respawn_anchor' ),perm .use_respawn_anchor )
2430
2432
Form :addSwitch (_Tr (' gui.landmgr.landperm.other_options.fishing' ),perm .use_fishing_hook )
2431
2433
Form :addSwitch (_Tr (' gui.landmgr.landperm.other_options.bucket' ),perm .use_bucket )
2434
+ Form :addSwitch (_Tr (' gui.landmgr.landperm.other_options.flower_pot' ),perm .edit_flower_pot )
2432
2435
Form :addLabel (_Tr (' gui.landmgr.landperm.editevent' ))
2433
2436
player :sendForm (
2434
2437
Form ,
@@ -2498,6 +2501,7 @@ OpenGUI = {
2498
2501
perm .use_respawn_anchor = get ()
2499
2502
perm .use_fishing_hook = get ()
2500
2503
perm .use_bucket = get ()
2504
+ perm .edit_flower_pot = get ()
2501
2505
2502
2506
DataStorage .Save ({0 ,1 ,0 })
2503
2507
player :sendModalForm (
@@ -4653,9 +4657,10 @@ mc.listen('onUseItemOn',function(player,item,block)
4653
4657
if bn == ' minecraft:cauldron' and perm .use_cauldron then return end -- 炼药锅
4654
4658
if bn == ' minecraft:lever' and perm .use_lever then return end -- 拉杆
4655
4659
if bn == ' minecraft:respawn_anchor' and perm .use_respawn_anchor then return end -- 重生锚(充能)
4656
- if string.sub (bn ,- 4 ,- 1 ) == ' door ' and perm .use_door then return end -- 各种门
4660
+ if string.sub (bn ,- 5 ,- 1 ) == ' _door ' and perm .use_door then return end -- 各种门
4657
4661
if string.sub (bn ,- 10 ,- 1 ) == ' fence_gate' and perm .use_fence_gate then return end -- 各种栏栅门
4658
4662
if string.sub (bn ,- 8 ,- 1 ) == ' trapdoor' and perm .use_trapdoor then return end -- 各种活板门
4663
+ if bn == ' minecraft:flower_pot' and perm .edit_flower_pot then return end -- 花盆
4659
4664
end
4660
4665
SendText (player ,_Tr (' title.landlimit.noperm' ))
4661
4666
return false
@@ -5170,4 +5175,4 @@ Land.API.RunExport()
5170
5175
-- Signs.
5171
5176
5172
5177
INFO (' Powerful land plugin is loaded! Ver-' .. Plugin .Version .toString ().. ' ,' )
5173
- INFO (' By: RedbeanW, License: GPLv3 with additional conditions.' )
5178
+ INFO (' By: RedbeanW, License: GPLv3 with additional conditions.' )
0 commit comments