WorldProtector is a mod allows you to protect your constructions on your servers. It's based on the same principle as the plugin WorldGuard but with several differences at command level.
To protect your world you can define regions which can be protected against various actions by adding flags to the regions. These flags prevent certain actions/events from happening to protect the region: e.g. placing blocks, using doors or explosions destroying blocks.
This can be done with the Flag Stick in conjunction with the Region Stick or with commands. You can further add players to a regions which are then allowed to bypass these rules/flags.
The port of the 1.18.2 version introduces a lot of new flags, protection features, as well as some QoL improvements. This mentioned be aware that some described features below are not present in every version.
Also note that older versions (1.12, 1.14, 1.15) will most likely not be updated with the new features added in 1.18. If you are looking for a more up to date version for 1.12 take a look at WorldDefender which is a direct fork of WorldProtector.
The WorldProtector base command is /worldprotector by default. Alternatively you can also use /w-p or /wp. If you have JourneyMap installed the default base command will be /w-p due to JourneyMap using /wp to create waypoints.
Use the Region Marker to mark the two blocks which define the area of the region.
[Optional] Expand the Y level (height) of your marked region with the /worldprodtector expand vert [<Y1>] [<Y2>] command ( default is 0 to 255) or by using the secondary function of the Region Marker (see Region Marker tooltip).
[Optional] Set the teleportation target of the region with SHIFT right-click on a block. You can teleport to this region later by using /worldprodtector region tp <region>. When not set, a default teleportation position will be calculated.
Define your region: /worldprodtector region define <region> or by renaming the Region Marker in an anvil. The regions are saved with their name per dimension. This means you cannot have multiple regions with the same name in the same dimension. Defining a region with an already used name will override the existing one.
Add flags to your region by using the appropriate command /worldprodtector flag add <region> <flag name> or by using the Flag Stick in conjunction with the Region Stick (see Flag Stick and Region Stick tooltips).
[Optional] Add players or teams to your region which are allowed to bypass the flags by using the command /worldprodtector player add <region> <playername> or by using the Region Stick (see Region Stick tooltip for more details).
There are three different sticks, which can help you define regions, add and remove protection flags to them, as well as players. These sticks are extension to the already existing commands the mod offers.
Except for the marking, which has to be done with the Region Marker, it is possible to use this mod only with the command line. But the most common task can also be done without commands!
Be sure to check out the tooltips of the sticks to get more information!
The Region Marker allows you to mark an area (cuboid) for which you can then specify a name later(no whitespace allowed!). To mark a region you simply mark to blocks in the world by clicking on them. Additional you can SHIFT + right-click to set a teleport target for the region you are marking.
The Region Stick is used to select the region you want to edit. This can be done by holding it in your main hand and left-clicking. With this you are able to cycle through the regions defined in your current dimension.
When selected a region it is possible to add players to the region by first choosing the desired mode (add or remove player) with SHIFT + right-click, and then hitting a player (don't worry it does not hurt). Added players are not affected by the flags.
The Flag Stick is used to select the flag you want to add/remove to/from a region. This works analog to the region stick. First choose the corresponding mode (add or remove flag) with SHIFT + right-click, then hold the Region Stick with the selected region in your offhand, finally hold-right click to apply the flag to the region.
You can also put a bunch of name tags, named with the corresponding flag names in an anvil, into a container and shift-right click on the container to add or remove all flags in the container at once! This way you are able to group flags for the same purpose in a container and reuse it when needed. A real time saver!
There are several new QoL-Features available in the more recent versions.
You can use the interactive links (indicated by the colored text) to copy commands into your chat or run them directly with a single click. Just hover over the links and read the hints to know what they are doing.
Try it out! I would love to have some feedback. :-)
Note: Journey Map also uses the /worldprodtector command. For this reason WorldProtector offers /w-p or /wp as alternatives.
Currently, there are four types of commands to manager regions:
/worldprodtector region: Define, update, remove, activate/deactivate, set region priority; List regions, query information, teleport to regions regions;
/worldprodtector expand: allows to modify the Y level (height) of the marked region.
/worldprodtector flag: allows to define one or several flags (rules) for a region to protect it.
/worldprodtector player: allows to add/remove players to/from regions
/worldprodtector team: allows to add/remove teams to/from regions
Use /worldprodtector help for more information. Or /worldprodtector help <command> for information about a specific command.
Currently, there are 57 flags available. Click below to show the complete list.
To add a flag use the command /worldprodtector flag add <region> <flag>. To remove a flag from a region use /worldprodtector flag remove <region> <flag>.
To add or remove multiple flags at once just separate them with a space between them.
You are also able to add or remove all flags by using the special flag 'all': /worldprodtector flag <add|remove> <region> all
<details open=""><summary>Flag list </summary></details>
If a region is inside another region you have to use the command /worldprodtector region set-priority <region> <priority> to give a specific region more priority over another. The higher the number, the higher the regions' priority.
Let's suppose that there is a pvp arena in your spawn. Your spawn forbids pvp, but your in your arena you want to have pvp allowed. Then it's necessary that the arena gains the upper hand over the spawn to activate, if not pvp will not be possible.
Therefore, the arena region needs to have a higher priority than the spawn region. The following example show how to achieve this:
/worldprodtector region set-priority spawn 1
/worldprodtector region set-priority arena 2
Gif showing the new command line QoL features introduced in version 1.18.2-3.0.0.0:
Found a bug? Or do you have an idea for a new flag or just a general suggestions for the mod?
Don't hesitate to propose them to me. Or even better: Open a new issue!
Thanks to BrokenSwing for his help about regions and safeguard in the world.
Thanks to xEdek_ for the 1.12 fork WorldDefender.
Thanks to z0rdak for the 1.16.5 fork WorldProtector
This mod is open sourced under the Creative Commons 3.0 Attribution Non-Commercial License (see Links below).
You are free to:
Under the following conditions:
A: No. At this time WorldProtector has no Fabric port, but if the demand is big enough, I will consider it.
Q: Will the new features of the 1.18.2 version be backported to older versions?
A: For now I will be focusing on improving the 1.18.2 version as well as porting the mod to newer versions, sorry.
Q: Can you implement a flag for <your feature here>?
A: Maybe. Consider creating an issue on the WorldProtector RE Github page.
Q: Why can't I use the commands provided by WorldProtector?
A: Make sure you have at least the OP level defined in your WorldProtector server configuration or enable cheats in your single player world.
Q: Why are not all commands with /wp <command> working and prompting errors?
A: JourneyMap also uses the /wp command. Try using /w-p or /worldprotector instead.
No files available for download.