From 01234ecd2bca88554d68d9f9410b8c6cee30f536 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sat, 5 Sep 2015 17:50:38 +0200 Subject: split config values into new config.lua; added markers.AREA_RANGE in order to restrict the amount of areas shown on big servers --- config.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 config.lua (limited to 'config.lua') diff --git a/config.lua b/config.lua new file mode 100644 index 0000000..d1ce1dd --- /dev/null +++ b/config.lua @@ -0,0 +1,21 @@ + +-- 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 + +-- show only areas withhin this range when showing the list of ALL areas +-- (else it does get too crowded on multiplayer servers) +-- set to something >60000 in order to view all areas; set to a smaller +-- value (i.e. 500) on multiplayer servers with many protected areas +markers.AREA_RANGE = 100000; -- cgit v1.2.3