Compare commits
7 Commits
0b2baacb92
...
nalc-1.2.0
Author | SHA1 | Date | |
---|---|---|---|
99408df96a | |||
42cde6a494 | |||
e0783cf8bf | |||
c4d0fe020f | |||
b0c229d80a | |||
d7fba610a1 | |||
2a56743f65 |
@ -397,7 +397,7 @@ minetest.register_chatcommand("area_info", {
|
|||||||
elseif has_high_limit then
|
elseif has_high_limit then
|
||||||
table.insert(lines,
|
table.insert(lines,
|
||||||
S("You have extended area protection"..
|
S("You have extended area protection"..
|
||||||
" limits (\"areas_high_limit\" privilege).")
|
" limits (\"areas_high_limit\" privilege)."))
|
||||||
elseif privs.megabuilder then
|
elseif privs.megabuilder then
|
||||||
table.insert(lines, "You are a megabuilder (\"megabuilder\" privilege).")
|
table.insert(lines, "You are a megabuilder (\"megabuilder\" privilege).")
|
||||||
end
|
end
|
||||||
|
@ -225,7 +225,8 @@ function areas:canPlayerAddArea(pos1, pos2, name)
|
|||||||
(pos2.x - pos1.x) > max_size.x or
|
(pos2.x - pos1.x) > max_size.x or
|
||||||
(pos2.y - pos1.y) > max_size.y or
|
(pos2.y - pos1.y) > max_size.y or
|
||||||
(pos2.z - pos1.z) > max_size.z then
|
(pos2.z - pos1.z) > max_size.z then
|
||||||
return false, S("Area is too big.")
|
return false, S("Area is too big.")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Check number of areas the user has and make sure it not above the max
|
-- Check number of areas the user has and make sure it not above the max
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 142 B After Width: | Height: | Size: 123 B |
Binary file not shown.
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 134 B |
Reference in New Issue
Block a user