Domain - Land Claiming & Protection icon

Domain - Land Claiming & Protection -----

Highly configurable land claiming, grief protection & protection fields for 1.14-1.20



Custom Commands
Change Log 1.1.13

This update adds a new feature and addresses 1 bug.

Custom Commands

You can now run a custom command when a player enters or leaves a field - this could be used to set a player into creative mode, teleport them to the nether or just any other command you run on your server.

These commands run as though they are coming from console, so only players with domain.admin permission can set them.

How to use Custom Commands

Add the following flag to your block configuration:

Code (YAML):

RUN_COMMAND
: true
 
Once the RUN_COMMAND flag is in place, you can right click on your Domain block, select Edit Field, then Open the field to commands. Once that is done (the Domain block will turn into a beacon) you can set the commands. Note: Do not include the leading / in the command.

Code (Text):
/domain entercommand tp @p 200 65 100
Would teleport any player who enters the field to location 200 65 100

Code (Text):
/domain entercommand mvtp @p world_nether
Would use the Multiverse plugin to teleport a player to the nether

Code (Text):
/domain entercommand gamemode creative @p
You can set it up so anyone leaving the field has a command run with the "/domain leavecommand" command

Code (Text):
/domain leavecommand gamemode survival @p
Keep in mind, these commands are run when you move into or out of the field - they do NOT run when teleporting. (This is to reduce the chance of a teleport loop taking place)

@p = player name
@u = player UUID

Placing yourself in Domain Bypass mode (/domain bypass) will allow you to enter the field without the commands being run. This is helpful in the case where you set up an automatic teleport or similar and need to modify the block.

If you have any questions, please let me know.

Bug fix: Item frames can no longer be broken by projectiles if the PREVENT_PROJECTILE_ITEM_FRAME flag is applied to the field. This was allowing skeletons to shoot map walls.
----------, May 6, 2019
Resource Information
Author:
----------
Total Downloads: 210
First Release: Jan 30, 2019
Last Update: Aug 23, 2024
Category: ---------------
All-Time Rating:
32 ratings
Find more info at torpkev.github.io...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings