summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <noreply@gmail.com>2013-09-15 17:44:22 -0400
committerShadowNinja <noreply@gmail.com>2013-09-15 17:44:22 -0400
commitd026b42a79acd6bba1f43600b8659c0ad5597283 (patch)
tree7d55aaf6f29e8c874a5eee8d6c380e905a910c67
parent547fa726bfe4c8e0c984bbda55962e801d873080 (diff)
Add README
-rw-r--r--README.md95
-rw-r--r--chatcommands.lua2
2 files changed, 96 insertions, 1 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..3c31433
--- /dev/null
+++ b/README.md
@@ -0,0 +1,95 @@
+Areas mod for Minetest 0.4.8+
+=============================
+
+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+Configuration
+-------------
+If you wish to specify configuration options, such as whether players are
+allowed to protect their own areas with /protect (Disabled by default), you
+should check config.lua and set the apropriate settings in your minetest.conf.
+
+
+Tutorial
+--------
+To protect an area you must first set the corner positions of the area.
+In order to set the corner positions you run:
+1. "/area\_pos set" punch the two border nodes.
+2. "/area\_pos set1/2" punch only the first or second border node.
+3. "/area\_pos1/2" set position one or two to your current position.
+4. "/area\_pos1/2 X Y Z" set position one or two to the specified coordinates.
+
+Once you have set the border positions you can protect the area by running:
+1. "/set\_owner &lt;OwnerName&gt; &lt;AreaName&gt;"
+ -- If you are a administrator or moderator with the "areas" privilege.
+2. "/protect &lt;AreaName&gt;"
+ -- If the server administraor has enabled area self-protection.
+
+The area name is used so that you can easily find the area that you want when
+using a command like /list\_areas. It is not used for any other purpose.
+For example: /set\_owner SomePlayer Diamond city
+
+Now that you own a area you may want to add sub-owners to it. You can do this
+with the /add\_owner command. Anyone with a area can use the add\_owner
+command on their areas. Before using the add\_owner command you have to select
+the corners of the sub-area as you did for set\_owner. If your markers are
+still around your origional area and you want to grant access to your entire
+area you will not have to re-set them. You can also use select\_area to place
+the markers at the corners of an existing area.
+The add\_owner command expects three arguments:
+1. The id of the parent area. (The area that you want it to be a sub-area of)
+2. The name of the player that will own the sub-area.
+3. The name of the sub-area.
+
+For example: /add\_owner 123 BobTheBuilder Diamond lighthouse
+
+Chat commands
+-------------
+ * /protect &lt;AreaName&gt;
+ Protects a area for yourself. (If self-protection is enabled)
+
+ * /set\_owner &lt;OwnerName&gt; &lt;AreaName&gt;
+ Protects a area. (Requires the "areas" privilege)
+
+ * /add\_owner &lt;ParentID&gt; &lt;OwnerName&gt; &lt;ChildName&gt;
+ Grants annother player control over part(or all) of a area.
+
+ * /rename\_area &lt;ID&gt; &lt;NewName&gt;
+ Renames a existing area, usefull after converting from node_ownership
+ when all areas are unnamed.
+
+ * /list\_areas
+ Lists all of the areas that you own.
+ (Or all of them if you have the "areas" privilege)
+
+ * /find\_areas &lt;Regex&gt;
+ Finds areas using a Lua regular expresion.
+ For example:
+ /find_areas [Cc]astle To find castles.
+
+ * /list\_owners
+ Lists the owners of your position.
+
+ * /remove\_area &lt;ID&gt;
+ Removes a area that you own. Any sub-areas of that area are made sub-areas
+ of the removed area's parent, if it exists. Otherwise they will have no
+ parent.
+
+ * /recursive\_remove\_areas &lt;ID&gt;
+ Removes a area and all sub-areas of it.
+
+ * /change\_owner &lt;ID&gt; &lt;NewOwner&gt;
+ Change the owner of a area.
+
+ * /select\_area &lt;ID&gt;
+ Sets the area positions to those of an existing area.
+
+ * /area\_pos {set,set1,set2,get}
+ Sets the area positions by punching nodes or shows the current area positions.
+
+ * /area\_pos1 \[X,Y,Z|X Y Z\]
+ Sets area position one to your position or the one supplied.
+
+ * /area\_pos2 \[X,Y,Z|X Y Z\]
+ Sets area position two to your position or the one supplied.
+
diff --git a/chatcommands.lua b/chatcommands.lua
index 2f320ff..341e70c 100644
--- a/chatcommands.lua
+++ b/chatcommands.lua
@@ -132,7 +132,7 @@ minetest.register_chatcommand("add_owner", {
areas:save()
minetest.chat_send_player(ownername,
- "You have been gtanted control over an area."
+ "You have been granted control over an area."
.." Type /list_areas to show your areas.")
minetest.chat_send_player(name, "Area protected.")
end})