your current location:首页 > news>MinecraftworkDguard plug -in area operation tutorial

MinecraftworkDguard plug -in area operation tutorial

2024-12-17 06:04:23|Myriagame |source:minecraft skins

Quickly start the selection area

To create a area, you have to tell WG your area.WE is used for selection.

The area can be the following shape:

cube

Polygonal

Not supported!

Basic instruction

Creation area

Use this instruction to create area /region define:

/Region Define Town

/rg and/region are the same

/RG Define Town

The new area is silently that players are prohibited from destroying the blocks. In order to enable players to build, to increase the owner and members of the region, you can add separate authority to each member.

All players can become the owner or member, the following is the instruction:

/RG Addmember Town Notch SK89Q G: Builders/RG Addown SK89Q/RG RemoveMemember Town G: Builders/Rg Removeowner Town SK89Q 

Please go to the regional command page.

You can also simply increase members while creating a area:

/RG Define Town NONO SK89Q G: Builders

The area will be stored automatically without preservation instructions.

Example: Create a area that can only be built by Builders spawn

Select the range of spawn

Create a area called spawn: /RG Define spawn

Increase the construction team as a member: /RG Addmember spawn G: Builders

Tip: The area will be automatically preserved after a certain interval. If you want to be forced to save, use/rg save

You can delete the area like this: /RG Remove Town

List regional message /RG Info Town

List all areas /RG List

This re -select the area /RG Redefine Town

Please look at the regional command more

Regional configuration

Area overlap

The area can overlap each other.

If it overlap, players must have all of these overlapping regions to build in the overlapping area.

If you want one area to cover another, use inheritance.

If you want a area to build, use Build permissions.

If the area does not support the protection of this area, use Passthrough permissions.

Example: Create a free mining area overlapped in spawn

Select the area

Create area: /RG DEFINE MINE

Allow damage: /RG Flag Mine Build Alow

Permanent: Each area has their authority, such as PVP can use PVP permissions.

/RG Flag Town PVP Deny

Read the regional permissions to get more information.

Example: Do a region that cannot be destroyed [architect can] allowed PVP

Select the area

Create area /RG Define Arena

Allow PVP /RG Flag Arena PVP Allow

Because the architects are not a member of the region, they cannot build it, and they can't even be when they are regional members.

But the reason you created is the use of PVP permissions, so you can use permissions to allow it./Rg Flag Arena Passthrough Allow

Frequent plots see the common plot page.

Regional wand

The area of ​​the area lists all the areas of the current position.It is a MC item, right -click to detect.

The default, this item is leather, but can be changed in the configuration.

To use this wand, you need worldguard.region.wand permissions

Regional logo

minecraft

Priority and inheritance

It is mentioned at the rapid start that the area can be covered.If you want to build in the coverage area, you need the authority in all areas.

But with different priority.

Priority

The default priority of each area is 0, but it can be changed. Large numbers mean high priority.-2147483648 to 2147483647 can be used as priority numbers, but you can also use -2, 10, 15, 100. Consider the highest priority in the area covered.

In the region, use the permissions with the highest priority.

Use the highest priority sign.

Change the priority in this way: /RG Setpriority Example 5

Example: Create a PUB area so that the PUB group can build.The builders group in the Spawn can already be built.

Selection area

Create area: /RG DEFINE PUB

Set priority: /RG Setpriority Pub 10 10

Create a treatment area in the PVP area.

Selection area

Create area /RG Define Heal

Forbidden PVP /RG Flag Heal PVP Deny

Priority /RG Setpriority Heal 10

inherit

As mentioned above, do you want to make the PUB group and the BUILEDER group in creating the PUB area?

You can add the builder to the members, but you can also use inheritance.

The members of the sub -area inherit the parent area, and the owner of the parent area has no authority to set up

This is for convenience:

Small areas in large areas

Create a template

There is at least one parent area in each area.

Use this instruction: /RG Setparent:

/RG Setparent sub -area father area

Remove the Father Area: /RG SetParent sub -area

WG will automatically detect inheritance.

Example: Create a mall

/RG Setparent Plot1 Mall

/RG Setparent Plot2 Mall

/RG Addowner Mall G: Mall_owners

/RG Addowner Plot1 SK89Q

Regional template

As mentioned earlier, because of inheritance, the parent area can be used as a template for the sub -area.

But you may want the template to not be the real area. You don't want to protect this area. One of the methods to do this is the full area. Use -G to create: /RG Define -G plot_template

example:

/RG Define -G PLOT_TEMPLE

/RG Setparent Plot1 Plot_template

/RG Setparent plot2 plot_template

/RG Setparent Plot_template Mall

/RG Flag Mall Chest-ACcess Allow

/RG Flag Plot_template Chest-ACCESS DENY

High -priority parent areas will cover the area.

Regional group and coverage area

You may know that the logo can only be useful for some special groups.

/RG Flag Mall PVP -G NONMEMBERS DENY

When there is only one area, I know who is the member and who is the owner.But not in the coverage area: What is the player just a member of the area?

The answer is no, players must be members in the area of ​​the logo settings.For example, let's imagine that there are two groups--

Spawn, logo PVP -G NONMEMBERS DENY, no member Market, member "SK89Q" SK89Q cannot PVP because he is not a member of SPAWN.

When the Zizi area inherits the parent area, members and signs and masters will be inherited, which is not universal for this.

example:

Market, logo PVP -G NONMEMBERS DENY without member SHOP1, member "SK89Q," is the inheritance of Market SK89Q?Yes, so SK89Q can PVP

As mentioned earlier, the priority of the parent area cannot be higher than that of the sub -area, otherwise it will cover the area.

Global

The global area is a special area:

Including the entire world

There is the lowest priority

Have some special features

Every world has its entire area.But except you try to configure it, the entire area will not be created.

For example, this will automatically create a global area.

/Rg Flag __Global__ PVP Deny

Take the global area as a area that has always been there, and work in the area of ​​the world in the area of ​​the world.

However, like ordinary areas, the Passthrough area logo must be set to allow.Set the Passthrough to Allow to make the area a area without protection, so as long as there is no area to prevent damage, players can build.If you set the PASSTHROUGH logo to DENY, the area will make the area like a real area. Players must be owners or members to build.Because the entire area includes the entire world, the destruction will be prohibited by default.

Because of the extremely low priority of the global area, other areas will directly cover the sign of the entire area.

Note that the Passthrough logo has nothing to do with movement, it is the abbreviation of construction authority.

Example: There is no area where there is no area.

/RG Flag __Global__ Passthrough Deny

Increase the owner and members to open PasSthrough.

Architect

The architectural logo cannot be set to allow because the area's architectural logo will not work.Set the sign to Deny to make it like other areas, but it also means that it cannot be destroyed and placed.Because the entire area contains the entire world, the entire world cannot be built.

Warning: It is not recommended to set up the BUILD logo in a global area.If you want to protect the world, use the Passthrough logo.If you set the BUILD logo in a global area, other areas will not cover this logo.

Therefore, if you set the full area of ​​Build as Deny, no matter whether they are the owners or members of the region, they cannot build it.

Default

There are some differences in WE logo.If the Exp-Drop logo has no area settings, even members and owners cannot drop experience.

If you want to cover the Exp-Drops logo in a way to set it to DENY, it can run, and it will not work in the entire area.

If you try /RG Flag __Global__ Exp -Drop -G Nonmembers Deny, but this will not work.When you specify that you are not a member, you will specify that it is not a member of the entire area.Therefore, if you make a land area, experience will not be generated, because members of the ground area are not members of the entire area.

Remember, even if the priority of the general area is the lowest, the region will not inherit and the logo will not spread.

In this case, it is recommended that you create a template area.See priority and inheritance.

Regional claim

The regional claiming system can be used in WG.It is like /RG DEFINE, but players must have special permissions.

You also need to choose the area here, so you need Worldedit.Selection permissions.

Players can claim the selected area in this way: /RG Claim Region_name

When the player enters the instruction, it will automatically become a regional owner.This requires WorldGuard.region.claim permissions.

rule:

The largest number of areas: Unless there is a worldGuard.region.unlimited permissions, the number of players' region cannot exceed this number.

The largest area is mentioned: Unless there is a worldguard.region.unlimited permissions, the volume cannot exceed the configuration.

Prevention coverage: The area cannot be used in the area.

Prevention overlap: The area cannot overlap in other areas.

You can only overlap your own area: if regions.claim-only-inSide-EXISTING-Regions is enabled, it can only overlap in your own area.

At this time, the polygonal area is not supported.

You can also give players other instruction permissions.

storage

Regional data can be stored like this:

YAML does not require the database simple change, simply backup, quickly read

MySQL uses a database to save only a part of

Note: Other databases, such as PostgreSQL, SQL Server, SQLITE do not support

Switch storage: The default is YAML

Regions.sql.use can be switched to mysql in configuration. This will disable Yaml. If you switch to MySQL, the data table will automatically generate, of course, provide the corresponding permissions for SQL users

It is strongly recommended to backup before you change the database.

If you just switch the database, all your data will be lost before.You can use your brother's simple instructions to switch, you can use it before and after you switch.

To Migrate Data, Use: /RG Migratedb before and after, if you want to replace YAML with mysql with /RG Migratedb YAML MySQL

Please make sure that the target database is empty.

Don't forget to backup when you change it.

Yaml is in region.yml, every world.Can be read with/rg load.This is an example:

 Regions: test: min: {x: 1730.0, y: 0.0, z: -169.0} max: {x: 1742.0, y: 255.0, z: -158.0} Members: Players: [bobby] unique -Ids:[0EA8ECA3-DBF6-47cc-9D1A-C64551CA975C] Flags: {use: Allow, Greeting: Welcom !, PVP: Alow, PVP-GROUP: Members} Owners: Groups: [Admins] Type: Cuboid Priority: 4 __Global__: MEMBERS:{} Flags: {} owners: {} Type: Global Priority: 0 

UUID often uses

MySQL has only one server that can use mysql prefix can be changed. If there is an error, it will return to the file by default WG will only record and change this. This is explanation

 TablePurPoseRegionRegion Data, with Shape, Priority, and Parent Information.region_cuboiddata for Cuboids, with Bounds.region_Poly2DDATA For Al regions, with minimumum and maximum y value.region_poly2d_pointIDUAL ROWS for POINTS of Polygonal Regions.region_flagper-region Flag ayerslistof Players On Regions.region_groupslist of Groups On Regions.WorldNORLDS WORLDS Into A World ID.Usernormalizes Into A User Malmalize ups into a group id.each user row will either have a uuid or name set. 

It is not recommended to modify MySQL on the running server.Frequent errors.

Protection function

Protection is comprehensive:

可以保护方块的破坏和放置,物品栏的打开,外部TNT的爆炸,外部重力方块的掉落,外部植物的生长,牌子的切换,作物的踩踏,画和展示框,红石触发机关,动物,Splash potion and ejaculation.

In fact, WG also supports the protection of some MOD items.

The flow of water and magma is prohibited by default in the configuration, which can be opened.

If you find a way to destroy, please report BUG.

The exception will be closed for some members who are not members.

Such as the drop of items and picking items.

The experience value is not allowed to drop.

These can be removed by the regional logo.

But the funnel is not good.The funnel will automatically absorb the items in the lower part of the area, so do not put the area box in the lower part.This cannot be changed.

Exceptions can be increased to each area, or you can use triggering whitening lists to open in a global area.

Example: Allow anyone in the protected area allows anyone to use the redstone mechanism:

/rg flag __global__se allow

Example: In the Spawn area, all players who are not members lock the items discard and pick up:

/Rg Flag spawn item -pickup -g nonmembers dena

/RG Flag spawn item -drop -g nonmembers dena

Example: The players who are not members of all land lock the experience drop

/RG Flag Mall_paarent Exp -Drops -G NonMembers Deny This is the wrong /RG Flag __Global__ EXP -DROPS -G NONMEMBERS DENY

This is because the area does not inherit the global area.

Block and entity

The important feature of a WG protection area is to control blocks and entities. Players can become members of a region, but WG takes the blocks and entities like this. They can also be one of the members of the member area.

But the block and the entity cannot join the area like a player.A outer piston block cannot enter the area, which is the reason.This is because that block is like the Non-Member group. Similarly, some things cannot be changed.Pistons in the region can promote the square because it is a member of the area.

WG also tries to detect the real trigger of the event.If a gravel is placed over a protected area, it will be transferred to the protected area.The WG believes that the final block is due to the drop of the drop of gravel, and the falling gravel is due to the high block of the gravel. Because it is not a "member" in the area outside the area, it will be protected.

When the build logo is set in the area, no one can build it, and the piston will not work, because people cannot build, the piston is like a member, and it will not work.

Support of other mods and plugins:

Some mods add new game items, such as blocks, props, entities, and MODs need API.

Generally, the Bukkit plug -in generally follows the protection plug -in, but it is not always the case.Some mods of support are almost poor, and these mods will not follow the protection of other mods and plug -ins.

Optimal protection

Pay attention

Can change the blocks and entities of other blocks and entities

Extraction of ejaculation

WG can be protected on more blocks and entities.Protection will prevent left -click and right -click block and entity.This is usually enough because this is the only way to interact with most blocks and entities.

But WG cannot protect the GUI blocks and entities on the client, because what they send and receive has nothing to do with WG.

In fact, WG itself can not be controlled, such as some custom blocks and entities.Because some squares of MC itself will also affect the world, such as Pistons, but the maintates of the Bukkit group or the server you are using the server noticed that this has changed the world, so WG can protect them.

But the MOD block is different from the entity, so WG sometimes cannot protect these.

Some mods will virtually a player for certain effects.The names of these players are basically named after the MOD.But in addition to the recognition of which Mod is caused by this, WG can also prevent some behaviors.

To allow mods to play in the protected area, virtual players have special permissions. This configuration can be modified in Fake-Player-Build-Override so that MOD will not prevent MOD working in the protected area.

Ejection [and ejection effects in some magic MOD] are currently the author's main concern.This is because the MOD does not prompt the plug -in ejaculation.

WG has a working area Emit-Block-Use-ASE-FEET settings. This setting can allow you to set some types of items, which will pretend to change the box under the player's feet.This will prevent players from burning their own items, but players cannot use items in the area, but outside the protection area, this will not work

If there is a problem with a problem is a Bukkit plug -in, the author who contacted it to increase support for protecting the plug -in.This can also be solved by using WG API.

If a problem is a MOD, then you can only contact the publisher to get support.

Repair the selected area can::

If you are convinced, you can ignore it.

You can also disable the items that are problems.

Common plot

How to use the redstone switch?/RG Flag Region_name use all

/rg flag __global__se allow

How to make players riding and mining cars?

/RG Flag Region_name Ride Allow

/RG Flag __Global__ Ride Allow

How to prevent architecture in wild?

/RG Flag __Global__ Passthrough Deny

Why can't players who are not members going out?

/rg addmember exmple_region SK89Q

/RG Flag Example_region EXIT -G NONMEMBERS DENY

How can players who are not members only go out on the side?

Set two areas

One is the same as above

One side on one side of the area covers the logo.exit = Allow.

How to not protect all the enchanting table?

In the configuration of the Internet-Whitelist settings, add Enchantment table. Use Material to get the correct name.How can you be excavated but not destroyed?

Set the Block-Bream logo to allow:

/RG Flag Mining_area Block-Bream Allow

How can it only destroy some blocks?

Sorry, it is not supported now.

Land settings

How to set land?

You must first read the priority and inherit, and then create it according to the example.

/RG Define Mall

/RG Define Shop_template -g

/RG Define Shop1

/RG Define Shop2

/RG Define Shop3

/RG Setparent Shop_template Mall

/RG Setparent Shop1 Shop_template

/RG Setparent Shop2 Shop_template

/RG Setparent Shop3 Shop_template

/Rg Flag Mall Use Deny

/Rg Flag Shop_template Use Alow

question

Why doesn't the piston work?

Have you set up building permissions?

/rg flag __global__ build

If you want to protect the wild, use this

/RG Flag __Global__ Passthrough Deny

It is not supported to push the square in one area into another area.

Why are some other MODs disabled?

See what page to protect