Commit Graph

86 Commits

Author SHA1 Message Date
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
a8e5b90aeb Don't overwrite area file if serialization fails 2014-02-04 15:11:02 -05:00
72d26dad25 Fix self protection max areas off-by-one error 2014-01-15 20:14:24 -05:00
54f9f78c4b Remove redundant if 2014-01-15 20:13:47 -05:00
ed7f57bf2f Add IDs to HUD and areas:getAreasAtPos(pos) 2014-01-15 20:10:24 -05:00
f7f4c2ddb5 The length of a table with non-sequential indexes in not defined 2014-01-15 19:32:51 -05:00
7df1bbc190 Variable localizations 2013-12-17 20:31:11 -05:00
e73b8c82f9 Remove empty depends.txt 2013-12-16 17:22:57 -05:00
25556939f5 Allow adding areas with owner_defs 2013-12-16 17:18:15 -05:00
b3dbbc45f8 Remove temporary area id removal code 2013-12-15 18:22:22 -05:00
a747c2f505 Remove legacy protection method 2013-12-15 17:47:56 -05:00
db1d87c008 Fix /find_areas invalid regular expression crash 2013-11-18 21:16:06 -05:00
0d0215200c Move the HUD display up to not cover the hotbar 2013-11-18 21:12:27 -05:00
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
f096fb4dbb Use table indices as IDs
This significantly optimizes a lot of operations and removes redundancy.
2013-11-18 21:12:09 -05:00
f98312fe10 Optimize area and index finding 2013-11-18 17:57:32 -05:00
810a706e5f Show sub-areas in /list_areas 2013-11-18 17:45:44 -05:00
5f68c111dc Fix crash with recursive_remove_areas 2013-11-18 17:44:00 -05:00
8765a5e619 Fix help text (set_owner -> add_owner) 2013-11-17 12:40:25 -05:00
790ed15594 Chat command regex tweaks 2013-11-14 19:15:26 -05:00
db664d68f8 License tweaks 2013-11-14 19:11:20 -05:00
b40b9d2c39 Move areas.hasOwner 2013-11-14 18:26:57 -05:00
1a8efa9916 Fix possible hud vector error 2013-11-14 18:25:47 -05:00
7bfe20661d Code tweaks 2013-11-08 15:11:11 -05:00
ad3aaad8a8 Fix typo 2013-11-08 14:45:17 -05:00
5b4cbe122f Fix crash when using /area_pos# with invalid arguments 2013-10-29 12:38:12 -04:00
0c20a1b616 Show area owners on the hud (inspired by landrush) 2013-09-26 10:30:36 -04:00
17b32663b7 Add suport for multiple area save versions to /legacy_load_areas 2013-09-17 12:46:00 -04:00
ad04e7b5f6 Fix license, add comment about owner_defs support 2013-09-17 12:38:29 -04:00
d026b42a79 Add README 2013-09-15 17:44:22 -04:00
547fa726bf Fix crash with invalid number passed to select_area 2013-09-08 20:52:20 -04:00
e86c760c78 Actually fix buildable_to nodes and update for protection support pull 2013-09-06 23:08:01 -04:00
b1a4f878ef Fix rename_area and buildable_to nodes on the edges of areas 2013-09-03 17:09:11 -04:00
7b0ff512f7 Shorten lines 2013-09-03 01:33:08 -04:00
3d866330bf Add more spaces in area desctiption strings 2013-09-02 19:44:18 -04:00
4ae050a3ae Initial commit 2013-09-02 19:16:14 -04:00