Go to file
Maksym H cf71c5d87d Update HUD 2022-09-01 12:28:05 +03:00
.github/workflows Add luacheck 2021-04-24 12:38:46 +02:00
locale Update translations 2022-07-24 09:48:28 +02:00
textures Remove Protector Block 2022-08-18 12:52:52 +03:00
.gitignore Add luacheck 2021-04-24 12:38:46 +02:00
.luacheckrc Minor changes 2022-04-17 12:44:11 +02:00
README.md Minor update 2021-04-24 17:18:40 +02:00
api.lua Fixes and cleanup 2021-11-22 20:24:36 +02:00
api.md Add callbacks for area operations 2019-04-01 20:28:50 -07:00
chatcommands.lua Save the previous area owner at /change_owner 2022-08-26 15:01:05 +03:00
hud.lua Update HUD 2022-09-01 12:28:05 +03:00
init.lua Add `mod.conf` 2022-07-24 10:05:26 +02:00
interact.lua Don't do knockback in non-PvP areas (#2) 2022-08-21 23:33:22 +03:00
internal.lua Fix `player_exists` assert case 2022-05-02 22:55:15 +03:00
mod.conf Add `mod.conf` 2022-07-24 10:05:26 +02:00
pos.lua Update translations 2022-07-24 09:48:28 +02:00
protector.lua Remove Protector Block 2022-08-18 12:52:52 +03:00
settings.lua Increase max protected areas per player 2020-12-12 16:51:27 +01:00
settingtypes.txt Protector block cleanup 2020-02-13 23:52:54 +01:00

README.md

Areas mod for MultiCraft

Configuration

Open the tab Settings -> All Settings -> Mods -> areas to get a list of all possible settings.

For server owners: Check settingtypes.txt and modify your multicraft.conf according to the wanted setting changes.

Tutorial

  1. Specify the corner positions of the area you would like to protect. Use one of the following commands:
  • /area_pos set and punch the two corner nodes to set them.
  • /area_pos set1/set2 and punch only the first or second corner node to set them one at a time.
  • /area_pos1/2 to set one of the positions to your current position.
  • /area_pos1/2 X Y Z to set one of the positions to the specified coordinates.
  1. Protect the selected area by running one of the following commands:
  • /set_owner <OwnerName> <AreaName> -- If you have the areas privilege.
  • /protect <AreaName> -- If you have the areas privilege or the server administrator has enabled area self-protection.

The area name is used only for informational purposes and has no functional importance.

For example: /set_owner SomePlayer Mese city

  1. You now own an area. You may now add sub-owners to it if you want to (see command /add_owner). Before using the /add_owner command you have to select the corners of the sub-area as you did in step 1.

If your markers are still around your original area and you want to grant access to your entire area you will not have to re-set them. Use /select_area to place the markers at the corners of an existing area if you've reset your markers and want to grant access to a full area.

The /add_owner command expects three arguments:

  1. The ID number of the parent area (the area that you want to add a sub-area to).
  2. The name of the player that will own the sub-area.
  3. The name of the sub-area. (can contain spaces)

For example: /add_owner 123 BobTheBuilder Diamond lighthouse

Commands

  • /protect <AreaName> -- Protects an area for yourself. (if self-protection is enabled)

  • /set_owner <OwnerName> <AreaName> -- Protects an area for a specified player. (requires the areas privilege)

  • /add_owner <ParentID> <OwnerName> <ChildName> -- Grants another player control over part (or all) of an area.

  • /rename_area <ID> <NewName> -- Renames an existing area.

  • /list_areas -- Lists all of the areas that you own, or all areas if you have the areas privilege.

  • /find_areas <Regex> -- Finds areas using a Lua regular expresion. For example, to find castles:

    /find_areas [Cc]astle
    
  • /remove_area <ID> -- Removes an area that you own. Any sub-areas of that area are made sub-areas of the removed area's parent, if it exists. If the removed area has no parent it's sub-areas will have no parent.

  • /recursive_remove_areas <ID> -- Removes an area and all sub-areas of it.

  • /change_owner <ID> <NewOwner> -- Change the owner of an area.

  • /area_info -- Returns information about area configuration and usage.

  • /select_area <ID> -- 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.

  • /areas_cleanup -- Removes all ownerless areas. Useful for cleaning after user deletion, for example using /remove_player.

  • /area_open <ID> -- Toggle open/closed the specified area for everyone.

License

Copyright (C) 2013-2017 ShadowNinja

Copyright (C) 2015-2020 various contributors

Copyright (C) 2019-2021 MultiCraft Development Team

Licensed under the GNU LGPL version 3.0 or later. See https://www.gnu.org/licenses/lgpl-3.0.txt