Commit Graph

106 Commits

Author SHA1 Message Date
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 1a8efa9916.
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
ShadowNinja
810a706e5f Show sub-areas in /list_areas 2013-11-18 17:45:44 -05:00
ShadowNinja
5f68c111dc Fix crash with recursive_remove_areas 2013-11-18 17:44:00 -05:00
ShadowNinja
8765a5e619 Fix help text (set_owner -> add_owner) 2013-11-17 12:40:25 -05:00
ShadowNinja
790ed15594 Chat command regex tweaks 2013-11-14 19:15:26 -05:00
ShadowNinja
db664d68f8 License tweaks 2013-11-14 19:11:20 -05:00
ShadowNinja
b40b9d2c39 Move areas.hasOwner 2013-11-14 18:26:57 -05:00
ShadowNinja
1a8efa9916 Fix possible hud vector error 2013-11-14 18:25:47 -05:00
ShadowNinja
7bfe20661d Code tweaks 2013-11-08 15:11:11 -05:00
ShadowNinja
ad3aaad8a8 Fix typo 2013-11-08 14:45:17 -05:00
ShadowNinja
5b4cbe122f Fix crash when using /area_pos# with invalid arguments 2013-10-29 12:38:12 -04:00
ShadowNinja
0c20a1b616 Show area owners on the hud (inspired by landrush) 2013-09-26 10:30:36 -04:00
ShadowNinja
17b32663b7 Add suport for multiple area save versions to /legacy_load_areas 2013-09-17 12:46:00 -04:00
ShadowNinja
ad04e7b5f6 Fix license, add comment about owner_defs support 2013-09-17 12:38:29 -04:00
ShadowNinja
d026b42a79 Add README 2013-09-15 17:44:22 -04:00