Got a question that the wiki doesn't answer? Ask on the forum (preferred), or join us on IRC.

BeastNode

WorldGuard/Regions/Database format

From EngineHub.org Wiki
Jump to: navigation, search

Currently the only database format for WorldGuard is a CSV file.

Check out the new WorldGuard documentation for WG 6+: http://docs.enginehub.org/manual/worldguard/latest/

CSV format

Regions are stored inside of plugins/Bukkit/regions.txt. The first two entries of all lines are:

  1. Region ID
  2. Region type

Type cuboid

This is the legacy entry for cuboids. It contains:

  1. Point 1 X
  2. Point 1 Y
  3. Point 1 Z
  4. Point 2 X
  5. Point 2 Y
  6. Point 2 Z
  7. Priority (do not set to any value other than 0 yet)
  8. List of owners
  9. List of flags
  10. Entry message

Type cuboid.2

This is the new entry for cuboids introduced in v3.0. It contains:

  1. Point 1 X
  2. Point 1 Y
  3. Point 1 Z
  4. Point 2 X
  5. Point 2 Y
  6. Point 2 Z
  7. Priority (do not set to any value other than 0 yet)
  8. ID of parent region
  9. List of owners
  10. List of members
  11. List of flags
  12. Entry message
  13. Exit message

Owners and members formats

The list of members and owners is comma separated. Before each entry is a prefix indicating its type:

  • u: indicates a player's name
  • g: indicates a group's name
Example: Example of members and owners
u:sk89q,u:tetsu,g:admins

Flags format

The flags are parsed character by character. Each character is a flag. Prepending one flag or a list of flags with a plus (+) indicates that following flags will have the ALLOW state. Prepending a flag or a list of flags with a minus (-) indicates that the following flags will have a DENY state. Without a state identifier (- or +), it is assumed that flags have an ALLOW state. The lack of a flag indicates that it state is NONE. All flags are only one character long and are case-sensitive, except in the case of custom flags that are two characters long. Custom flags are an underscore (_) followed by the flag character.

Example: Example of flags
+bpmc-t-l-f-F+_x_s
Flag name Flag character
Passthrough z
Build b
PvP p
Mob damage m
Creeper explosion c
TNT t
Flint and steel l
Fire spread f
Lava fire spread F

Migration

Navigation menu