Commit Graph

70 Commits

Author SHA1 Message Date
Tai Kedzierski
7b51f84404 Limit recalculations.
Setting based - limit area recalculation and allow tuning of the
interval.
2019-04-01 21:21:31 -07:00
sofar
1bbb997c7a
Add callbacks for area operations 2019-04-01 20:28:50 -07:00
red-001
09c030352f Use the new minetest.safe_file_write API if possible when saving database. 2019-04-01 20:27:17 -07:00
sofar
2637876555
Fix pos big (#1)
* fix pos being to big

* improve

* make the change instead in hud.lua
2019-04-01 20:24:59 -07:00
AntumDeluge
289d0e623c Update usage of settings API 2017-06-09 13:00:12 -04:00
Jordan Irwin
d3d43d9511 Reference 'settings.lua' instead of 'config.lua' (#21) 2017-05-06 13:41:45 -04:00
Tai @ Flex
6080ff065e Add API for adding areas to HUD 2016-12-19 16:36:37 +00:00
ShadowNinja
23f81f6278 Add mod.conf 2016-12-04 04:12:27 +00:00
Dorian Wouters
7cb8787beb Use get_auth_handler().get_auth() instead of auth_table
minetest.auth_table is an implementation detail of the default auth handler.
No guarantee is made that it even exists and using this table directly is incompatible
with custom auth handlers.  Instead, use the proper auth handler API.
2016-09-03 21:05:52 -04:00
paly2
67507c7591 Fix move_area not updating AreaStore 2016-06-23 15:49:22 -04:00
ShadowNinja
10338cd5d1 Minor isSubarea optimization 2015-10-30 20:31:24 -04:00
est31
8b0b8c1ad2 Add support for the AreaStore API 2015-10-29 16:49:35 -04:00
est31
177f659f4e Add area_info command 2015-03-01 17:31:41 -05:00
ShadowNinja
0cda67f5c1 Use the HUD alignment field instead of manually calculating offset 2015-01-07 18:31:59 -05:00
ShadowNinja
3f777900d4 Simplify settings definitions and namespace settings 2014-11-17 21:16:59 -05:00
ShadowNinja
e4aef02cb9 Add areas_high_limit privilege for trusted players 2014-11-14 13:21:09 -05:00
ShadowNinja
fe52664043 Add move_area command 2014-11-11 17:27:35 -05:00
ShadowNinja
3666f7debb Tweak README 2014-10-25 14:00:19 -04:00
ShadowNinja
21c9e6a4c0 Make HUD area list multi-line 2014-10-13 20:32:02 -04:00
ShadowNinja
b3873fcfaf Make find_areas an admin-only command
Some regexes can be very slow.
This also fixes a bug with single-item result sets.
2014-10-04 15:58:50 -04:00
ShadowNinja
9871caf1e2 Copy positions to avaoid multiple references 2014-07-15 15:41:18 -04:00
ShadowNinja
913e1fe6b3 Make legacy table copy entries 2014-07-12 19:18:31 -04:00
ShadowNinja
57c18fce95 Make all admin checks use one table 2014-07-12 19:10:26 -04:00
ShadowNinja
65013863b2 Make canInteractInArea player optional and add an admin check 2014-07-12 19:06:05 -04:00
ShadowNinja
e17cda925b Add canInteractInArea 2014-07-12 16:37:54 -04:00
ShadowNinja
ee212466bf Fix add_owner validity check 2014-06-23 15:19:19 -04:00
ShadowNinja
8ee86b2366 Fix rename_area's argument validity check 2014-06-18 19:47:14 -04:00
ShadowNinja
bfb260d181 Fix a indexing bug with change_owner 2014-06-14 22:49:06 -04:00
ShadowNinja
abd6a4c709 Centralize position getting and sorting 2014-05-30 17:41:41 -04:00
ShadowNinja
02905caaeb Pass messages by return value 2014-05-29 11:04:37 -04:00
Ciaran Gultnieks
4e1aef5491 Fix various readme typos 2014-03-30 13:54:20 -04:00
ShadowNinja
6f31a56594 Tweak HUD area list display 2014-03-30 13:53:56 -04:00
ShadowNinja
ce8891a325 Allow open areas inside closed areas to be used openly 2014-03-23 12:25:44 -04:00
ShadowNinja
78ca95d5b4 Allow protection of intersecting sub-areas and make error message more informative 2014-03-22 23:24:29 -04:00
Ciaran Gultnieks
1a5efd07f1 Allow areas to be optionally open to all other users
In other words, you can retain ownership of an area but disable and
re-enable the protection aspect at will, via the area_open chat command.

By default, nothing is any different following this commit - all
existing areas are protected, as are new ones. But you can do (for
example) "area_open 1" and if you're the owner of that area, it's
now possible for other users to interact there. "area_open 1" again to
toggle the protection back on.

Where there are sub-areas, the main owner and ALL sub-area owners at a
particulare location must have set the areas to open to disable
protection.
2014-02-07 18:07:56 -05:00
ShadowNinja
a8e5b90aeb Don't overwrite area file if serialization fails 2014-02-04 15:11:02 -05:00
ShadowNinja
72d26dad25 Fix self protection max areas off-by-one error 2014-01-15 20:14:24 -05:00
ShadowNinja
54f9f78c4b Remove redundant if 2014-01-15 20:13:47 -05:00
ShadowNinja
ed7f57bf2f Add IDs to HUD and areas:getAreasAtPos(pos) 2014-01-15 20:10:24 -05:00
ShadowNinja
f7f4c2ddb5 The length of a table with non-sequential indexes in not defined 2014-01-15 19:32:51 -05:00
ShadowNinja
7df1bbc190 Variable localizations 2013-12-17 20:31:11 -05:00
ShadowNinja
e73b8c82f9 Remove empty depends.txt 2013-12-16 17:22:57 -05:00
ShadowNinja
25556939f5 Allow adding areas with owner_defs 2013-12-16 17:18:15 -05:00
ShadowNinja
b3dbbc45f8 Remove temporary area id removal code 2013-12-15 18:22:22 -05:00
ShadowNinja
a747c2f505 Remove legacy protection method 2013-12-15 17:47:56 -05:00
ShadowNinja
db1d87c008 Fix /find_areas invalid regular expression crash 2013-11-18 21:16:06 -05:00
ShadowNinja
0d0215200c Move the HUD display up to not cover the hotbar 2013-11-18 21:12:27 -05:00
ShadowNinja
38dc65eb8e Revert "Fix possible hud vector error"
This was fixed upstream in builtin.
This reverts commit 1a8efa991661485b32b0c337e1fd1f43506cf16b.
2013-11-18 21:12:27 -05:00
ShadowNinja
f096fb4dbb Use table indices as IDs
This significantly optimizes a lot of operations and removes redundancy.
2013-11-18 21:12:09 -05:00
ShadowNinja
f98312fe10 Optimize area and index finding 2013-11-18 17:57:32 -05:00