summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorSokomine <wegwerf@anarres.dyndns.org>2015-09-05 17:50:38 +0200
committerSokomine <wegwerf@anarres.dyndns.org>2015-09-05 17:50:38 +0200
commit01234ecd2bca88554d68d9f9410b8c6cee30f536 (patch)
treebacd4dff8a5983a7e9631548349a3e41b1ef7bca /init.lua
parent22b833d93d5803b2eedfa1542b79628fa0fe59ae (diff)
split config values into new config.lua; added markers.AREA_RANGE in order to restrict the amount of areas shown on big servers
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua19
1 files changed, 1 insertions, 18 deletions
diff --git a/init.lua b/init.lua
index a228bee..2e72af0 100644
--- a/init.lua
+++ b/init.lua
@@ -5,26 +5,9 @@
markers = {}
--- stores up to 4 marker positions for each player
-markers.positions = {}
-
--- store the positions of that many markers for each player (until server restart)
-markers.MAX_MARKERS = 50;
-
--- the protection against digging of the marker by other players expires after this time
-markers.EXPIRE_AFTER = 60*60*24;
-
--- self-protected areas can not get higher than 100 blocks
-markers.MAX_HEIGHT = 100;
-
--- only areas up to this size (in square meters) can be protected
-markers.MAX_SIZE = 1024; -- 32m * 32m = 1024 m^2
-
-
+dofile(minetest.get_modpath("markers").."/config.lua");
dofile(minetest.get_modpath("markers").."/areas.lua");
-
dofile(minetest.get_modpath("markers").."/marker_stone.lua");
-
dofile(minetest.get_modpath("markers").."/land_title_register.lua");